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

Is an array a vector?

544


What does exclamation mean in java?

565


Explain about the interpreter in java?

617


Is an object null?

551


Can a constructor be protected?

526






What is difference between add() and addelement() in vector?

1058


What sorting algorithm does javascript use?

524


What is local declaration?

485


What are thread safe functions?

504


What is parsing in grammar?

549


What is a line separator in java?

533


Is java still relevant?

494


Can a hashset contain duplicates java?

490


State the main difference between c++ and java?

586


Can you extend singleton class?

596