+ 1

Pleas, I need an example each of Behaviour, Attributes, in c++

C++

30th Mar 2019, 6:36 AM
SIKIRU YUSUF
SIKIRU YUSUF - avatar
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.
10th Apr 2019, 8:44 PM
Animesh Singh
Animesh Singh - avatar
+ 2
Animesh Singh Thanks for the explanation.
12th Apr 2019, 7:15 AM
Shubham Srivastava
Shubham Srivastava - avatar
0
I really appreciate . Tbanks a lot
4th Oct 2020, 9:22 PM
SIKIRU YUSUF
SIKIRU YUSUF - avatar