Advertisements
Advertisements
प्रश्न
Explain the following concept related to the object oriented programming:
Class
स्पष्ट कीजिए
Advertisements
उत्तर
- A class is used to combine data and the functions that operate on it.
- Using a class, the complete set of data and code of an object can be defined as a user-defined data type.
- An object is simply a variable whose data type is a class.
- Once a class is defined, the user can create any number of objects of that class.
- A class is a group of objects of the same type.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Official
