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

Write a program to check string is palindrome without using loop?

783


What is the use of object and class classes?

783


Why does java doesnt suuport unsigned values?

1988


How do you square a number in java?

773


why an outer class cannot be declared as private?

3904


What is a databasemetadata?

725


What are the types of sockets in java?

753


what is static import in java? Explain

777


Can we declare an interface as final?

777


What do you mean by hashing?

845


What method is used to specify a container's layout in java programming?

784


What do you mean by a JVM?

817


What do you mean by platform independence of Java?

750


What about anonymous inner classes in java?

781


What is return type in java?

828