Computer Science, asked by anjusomai135, 5 months ago

What is the role of objects and class in encapsulation

Answers

Answered by awesompiyush
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 Anonymous
1

Answer:

to improve your knowledge

Explanation:

hope it helps u pls follow me and thank my answer

Similar questions