English

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?

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?
Chapter 6: Encapsulation - Exercises [Page 148]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 6 Encapsulation
Exercises | Q 1. (xi) | Page 148
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×