What are Encapsulation, Polymorphism and Inheritance?

Answer Posted / mohankumar

Encapsulation is also known as information hiding,it is to
protect data from the client using the classes but still
allowing the client to access the data,but do not modifying it.

Polymorphism ability to perform differently on different forms.

Inheritance means one base class derived from one or more
classes.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare Mutex and Semaphore in java.

562


Is it possible to override the main method?

535


How does arraylist work in java?

535


What is mean by exception?

552


Is set thread safe java?

504






What is the major advantage of external iteration over internal iteration?

616


What is run time allocation?

579


Explain the private protected method modifier?

548


What does @param args mean in java?

556


What is a dynamic array java?

521


What are the various access specifiers for java classes?

548


Why is whitespace important?

557


What is extension method in java?

563


What are the drawbacks for singleton class?

520


Why string is immutable with example?

528