+ 2

What are actually members of a class in terms of simple understanding?

7th Jul 2016, 3:43 PM
Anshuman Sharma
Anshuman Sharma - avatar
3 odpowiedzi
+ 2
Members of a class are simply functions . they have their definition, prototype n perform actions and they also return values ... and operate on any object of the class and also has an access to all the others members of a class for that object ...
7th Jul 2016, 5:06 PM
Nidhi Jangir
Nidhi Jangir - avatar
+ 1
a class generally contains functions(or methods) and attributes (or behaviors). a dog and bird both belong to the animal class, a dog has teeth, a bird has a beak, these could be considered attributes. "fly" may be a function that only a bird can do.
19th Jul 2016, 9:46 AM
maz
0
class contains :- 1) member variables as identifiers 2) attributes as character 3)behaviours as function
5th Mar 2017, 6:37 AM
mudang
mudang - avatar