Inheritance 04 Flashcards

1
Q

What are the implications of making a method final?

A

Making a method final means it cannot be overidden.

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

What is the diamond problem that may arise if multiple inheritance were permitted.

A

Diamond problem is when it is ambiguous as to which parent class a particular feature is inherited from.

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