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
