Answered Questions

  • What do mean by polymorphism, inheritance, encapsulation?

    Polymorhism: is a feature of OOPl that at run time depending upon the type of object the appropriate method is called.Inheritance: is a feature of OOPL that represents the "is a" relationship between different objects(classes). Say in real life a manager is a employee. So in OOPL manger class is inherited from the employee class. Encapsulation: is a feature of OOPL that is used to hide the information.

    gvjava

    • Dec 8th, 2010

    We can't create the object directly for the abstract classes,we can create object indirectly when we are inheriting that is called as polymorphism.  ex:  abstract class man   ...