Difference between inheritance and encapsulation
Answers
Answered by
0
Encapsulation is binding up of data item under the same unit.
The property of aderived class derived from its own base class is called Inheritance.
The property of aderived class derived from its own base class is called Inheritance.
Answered by
0
Answer:
The difference between inheritance and encapsulation is that the system of wrapping data and functions into a single unit is known as encapsulation of data, but Inheritance is the process by which objects of one class can link and share some common properties of objects from another class.
Explanation:
Inheritance is derived from biology. The literal meaning of inheritance is acquired characteristics.
Similar questions