<<< Interface, Inheritance, and Composition Example | Index | Java and Multiple Inheritance >>> |
Any class that implements an interface must also implement concrete code for each method listed in the interface.
If class fails to implement a method declared in the interface, the class will not compile...
...because in Java the interface contract must be enforced.
<<< Interface, Inheritance, and Composition Example | Index | Java and Multiple Inheritance >>> |