+ 3
What is a class in oop/c++
abt object oriented programming
5 Answers
+ 10
The class is one of the defining ideas of object-oriented programming. Among the important ideas about classes are:
A class can have subclasses that can inherit all or some of the characteristics of the class. In relation to each subclass, the class becomes the superclass.
Subclasses can also define their own methods and variables that are not part of their superclass.
The structure of a class and its subclasses is called the class hierarchy.
+ 9
You didn't even complete the C++ course, it's already answered in the âClass and Objectsâ lesson in that course. For reference:
https://www.sololearn.com/learn/CPlusPlus/1710/
+ 6
@Dev You'r right,sorry
I did not look at the author :D
+ 5
@hossein: You got me wrong actually... That comment was for @muazim maqbool (who has asked this question) :)
+ 3
Imagine that you want a dog in your program.
A class tells the program what a dog is.
An object of the type dog is a dog, it has all of the variables and methods that a dog has according to the class.