English

Explain the following concept related to the object oriented programming: Class - Computer Science 1

Advertisements
Advertisements

Question

Explain the following concept related to the object oriented programming:

Class

Explain
Advertisements

Solution

  1. A class is used to combine data and the functions that operate on it.
  2. Using a class, the complete set of data and code of an object can be defined as a user-defined data type.
  3. An object is simply a variable whose data type is a class.
  4. Once a class is defined, the user can create any number of objects of that class.
  5. A class is a group of objects of the same type.
shaalaa.com
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×