+ 1
Pleas, I need an example each of Behaviour, Attributes, in c++
C++
3 Answers
+ 5
Ok, so attributes and behaviours are applicable to objects. An object could be anything, a car, a bike, a fruit, you or me, anything really.
Let's say we have a human object. What could be it's attributes?
Their name
Their age
Their height, weight, dob, sex etc
The behaviours of a human object could be:
Talking, walking, sleeping, eating, etc.
+ 2
Animesh Singh
Thanks for the explanation.
0
I really appreciate . Tbanks a lot