0

What are classes in C++ and what purpose do they serve?

10th Jan 2017, 10:21 AM
Tanisha
3 odpowiedzi
+ 1
Comparated to c, c++ introduced the object oriented programming. A class is the code definition of an object. Please look at SoloLearn c++ course to get more informations.
10th Jan 2017, 10:58 AM
Michael Isac Girardi
Michael Isac Girardi - avatar
+ 1
kuch nahi. bus. ainve hi, maze lene ke liye hai.😊😊😊
10th Jan 2017, 7:27 PM
Nawaj Shareef
Nawaj Shareef - avatar
0
A class is a way to represent something (physical or virtual) in S/W. A classic example is an animal class. A class is used to contain the attributes/properties of an animal into a single S/W component that can be used within a S/W program. For instance, all animals have a weight and length/height -- these could be some of the members of the class. The class's member functions can be used to provide a way for other S/W components to interact with the animal -- e.g. 'Move()', 'Eat()', etc.
10th Jan 2017, 12:10 PM
Nathan
Nathan - avatar