What are Encapsulation, Polymorphism and Inheritance?

Answer Posted / sakthi k

Wrapping of data and functions together is known as
Encapsulation. Eg: Capsule.


Ability of an object to take more than one form is known as
polymorphism.
Two types of polymorphism are availabe
Compile time
Run time

The process of acquiring the base class property is known
as Inheritance

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is static import in java? Explain

555


How do you declare a destructor in java?

506


Give few difference between constructor and method?

518


Why is singleton not thread safe?

651


Is array synchronized in java?

553






Java.util.regex consists of which classes?

547


Can we write any code after throw statement?

609


What is the difference between overriding and overloading in OOPS.

563


What is the benefit of lambda expressions?

496


What is the flag in java?

612


Why are functions called methods in java?

530


What are java annotations?

646


Name some classes present in java.util.regex package.

608


What is the difference between compiler and jvm?

553


What is keyword and identifier?

640