Advertisements
Advertisements
Question
Explain the following concept related to the object oriented programming:
Class
Explain
Advertisements
Solution
- 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
Is there an error in this question or solution?
2024-2025 (March) Official
