explain the following terms with examples in c++.
1) class
2) object
Answers
Answered by
1
Answer:
sorry I don't know the answer but
please mark my answer as the brainliest
Answered by
2
Answer:
In object-oriented programming languages like C++, the data and functions (procedures to manipulate the data) are bundled together as a self-contained unit called an object. A class is an extended concept similar to that of structure in C programming language; this class describes the data properties alone. In C++ programming language, a class describes both the properties (data) and behaviors (functions) of objects. Classes are not objects, but they are used to instantiate objects.
Similar questions
Computer Science,
5 months ago
Social Sciences,
5 months ago
India Languages,
5 months ago
Math,
11 months ago
Chemistry,
1 year ago