| Mobile | RSS

Java Tutorial : Inheritance and Interfaces – Summary 

24th Sep, 2009 | No Comment | Posted in Java by Alex Jose
  • Inheritance is the concept of extending data members and methods of a superclass in a subclass.
  • You can derive data members and methods from a single superclass that is a subclass of another superclass.
  • Java does not support multiple inheritance directly.
  • You can use the concept of method overriding to override the superclass method with the subclass method having same names.
  • Interface is a concept of creating data members and methods that can be derived by multiple classes in Java.
  • Interfaces also allow you to declare set of constants that can be imported into multiple classes.

Inheritance and Interfaces related Tutorial Article

  1. Java Tutorial : Inheritance In Java – Part 1
  2. Java Tutorial : Inheritance in Java – Part 2, Example
  3. Java Tutorial : Multilevel Inheritance
  4. Java Tutorial: Implementing Overriding Methods
  5. Java Tutorial : Implementing Interfaces
  6. Java Tutorial : Implementing Interfaces – Example
Related Posts with Thumbnails