Ashish Y
In Which case implementing interface is better than extending the Adapter classes in JAVA ?
By Ashish Y in OOP/OOD on Jun 11 2007
  • satyanand kumar
    Feb, 2008 14

    If you want to extend any other class then you must choose to implement an interface instead of extending a class

    Multiple inheritance is not possible in java for the case of a Class but for the case of inheritance it is possible

    • 0
  • Ashish Y
    Jun, 2007 11

    • Java doesn't support multiple inheritance(By extending two classes)
    • Suppose we want to extend a parent class and assign its properties to its child class then -
    • In this case we can't extend Adapter class as

    "" class extends ,""      is not possible.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS