What are Encapsulation, Polymorphism and Inheritance?

Answer Posted / janet

Encapsulation is the mechanism that binds together
code and data it manipulates and keeps both safe from
outside interface and misuse.
Inheritence is the process by which one object
acquires the properties of another object.
polymorphism is the feature that allows one
interface to be used for general class actions.

Is This Answer Correct ?    53 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What about abstract classes in java?

603


What is a numeric format?

554


What is an example of a constant variable?

523


explain different ways of using thread? : Java thread

567


what is a thread pool in java and why is it used?

525






What is a char in java?

528


explain the concept of virtual method invocation in polymorphism in detail?

1706


What is method in java with example?

483


Explain constructors and types of constructors in java.

637


What are java packages?

578


Which is the class in java?

510


What is the benefit of inner / nested classes ?

519


What about anonymous inner classes in java?

559


What do you mean by flow of struts?

741


How many types of keywords are there?

556