Computer Science, asked by surajpuja6910, 10 months ago

What are Encapsulation, Inheritance and Polymorphism?

Answers

Answered by mohamedabraramjad
0

Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. ... Therefore, it is also known as data hiding.

Answered by cyrusbishop
1

Answer:

The system of wrapping data and functions into a single unit is known as encapsulation.

Inheritance is the process by which objects of one class can link and share some common properties of objects from another class.

Polymorphism is the process of using a function for more than one purpose.

Explanation:

Polymorphism allows the use of different internal structure of the object by keeping the same external interface.

Similar questions