What is the role of objects and class in encapsulation
Answers
Answered by
1
Answer:
A class is a program-code-template that allows developers to create an object that has both variables (data) and behaviors (functions or methods).
Explanation:
Encapsulation can be used to hide both data members and data functions or methods associated with an instantiated class or object.
pls hit thanks and mark as the brainliest answer if this answer helped you
Answered by
1
Answer:
to improve your knowledge
Explanation:
hope it helps u pls follow me and thank my answer
Similar questions
Political Science,
2 months ago
Math,
2 months ago
Chemistry,
5 months ago
Business Studies,
5 months ago
English,
10 months ago
English,
10 months ago
Math,
10 months ago