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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly