Inheritance :
|
|
|
|
Also See: Link |
| All primitive data must be define and instantiated
|
|
| Interface can't implement another interface
|
|
One class can't implement another class, but an abstract
class can create an abstract of the method that can be overridden in an
extended class. ![]() In the above illustration, since the interface Note_1 is extended by another interface Note, when the Note_1 interface is extended in an abstract class, this abstract class will inherit the member functions and variables of Note_1 interface along with Note interface. |
|
| However, the class that will inherit an abstract class all
the members should be implemented
|
|
| Now we can compile the class
|
|
| It is also allowed
|
|
