+ 2
What are actually members of a class in terms of simple understanding?
3 Answers
+ 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 ...
+ 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.
0
class contains :-
1) member variables as identifiers
2) attributes as character
3)behaviours as function