Advertisements
Advertisements
Question
A class encapsulate Data Members that contains the information necessary to represent the class and Member methods that perform operations on the data member.
What does a class encapsulate?
Options
Information and operation
Data members and Member methods
Data members and information
Member methods and operation
MCQ
Advertisements
Solution
Data members and Member methods
Explanation:
A class encapsulates data members that store information and member methods that perform operations on that data. These together form a single unit called a class.
shaalaa.com
Is there an error in this question or solution?
