+ 3

What is a class in oop/c++

abt object oriented programming

6th Jan 2018, 3:55 PM
Muazim Maqbool
Muazim Maqbool - avatar
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.
6th Jan 2018, 4:00 PM
ZeroByte
ZeroByte - avatar
+ 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/
6th Jan 2018, 4:04 PM
Dev
Dev - avatar
+ 6
@Dev You'r right,sorry I did not look at the author :D
6th Jan 2018, 4:18 PM
ZeroByte
ZeroByte - avatar
+ 5
@hossein: You got me wrong actually... That comment was for @muazim maqbool (who has asked this question) :)
6th Jan 2018, 4:15 PM
Dev
Dev - avatar
+ 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.
6th Jan 2018, 4:52 PM
Jacob Pembleton
Jacob Pembleton - avatar