A class in the example of human behavior is all the package (walk, eat, sleep etc) or every behavior separately is called class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

A class in the example of human behavior is all the package (walk, eat, sleep etc) or every behavior separately is called class?

A question to make sure that I got classes right in my mind .

21st Dec 2016, 7:51 AM
Nikos Fragkas
Nikos Fragkas - avatar
1 Answer
+ 1
no every behaviour is not a class...a class as a human being has many attributes and behaviour ..attributes are the physical specifics and behaviour are its functions like walk,eat,etc.. in functions attributes are its data members and behaviour are its functions...
21st Dec 2016, 8:56 AM
manjeet singh
manjeet singh - avatar