Computer Science, asked by mondalananya8765, 1 year ago

Explain inheritance and encapsulation with an example...

Answers

Answered by 123032
1
encapsulation is a technique of binding both data and functions together to keep them safe inside a container that is class and to prevent them from unauthorised access and misuse while inheritance is a property in which a new Class acquires the property of an existing class it allows reusability of the code

mondalananya8765: Explain it with an example... I need that mainly
Similar questions