Inheritance Flashcards
1
Q
What is inheritance?
A
A programming procedure to allow the reuse of code by referencing the behaviours and of an object.
2
Q
Assignment compatibility?
A
The same attributes and methods are available in the instances of the derived classes as in the instances of the superclass and can be used in exactly same way as their own attributes and methods
3
Q
What does the super keyword do in java?
A
The super() keyword is generally used in subclasses where its desirable to call the constructor of the said subclass’s parent class