what is inheritance and encapsulation in java
Answers
Answered by
4
The wrapping up of a data into a single unit is known as encapsulation.
The capability of inherit one class to another is known as inheritance.
Hope it helps y^_^
Answered by
0
Answer:
A class encapsulation is the system of wrapping data and functions into a single unit.
Inheritance is the process by which objects of one class can link and share some common properties of objects from another class.
Explanation:
Encapsulation focuses upon the implementation that gives rise to this behaviour in an object oriented programming.
Similar questions