Points to Remember about Java Encapsulation:
Inheritance & Ploymorphism points to note:
Inheritance: In simple words , Inheritance is way to define new a class , using classes which have already been defined
Ploymorphism: Is the ability of methods to behave differently , based on the object calling it. “Same interface, different implementation”.
No comments:
Post a Comment