Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads
Short Note
How are encapsulation and abstraction are interrelated?
Advertisement Remove all ads
Solution
Abstraction means giving only essential things and hiding unnecessary details. Encapsulation is the binding of data members and methods together in a capsule to avoid accidental changes to data from external users, i.e., encapsulation is the bundling of related algorithms and data.
Concept: Basic Concepts of OOP
Is there an error in this question or solution?