What are Encapsulation, Inheritance and Polymorphism?
Answers
Answered by
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
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
Hindi,
5 months ago
English,
5 months ago
Science,
5 months ago
India Languages,
10 months ago
India Languages,
10 months ago
Geography,
1 year ago