Tuesday, 14 April 2015

Interfaces


  • Mutliple inheritence is not supported in java.Means one subclass must have only one super class.
  • Multiple inheritence is achieved with help of interfaces.one  class can implements multiple interfaces
  • If a class extends the class as well interfaces the naming convention is first need to extend the class afterwards implements the interface.
Ex: class Foo extends Foo1 implements Foo2,Foo3

No comments:

Post a Comment