+ 2

Can you give a real life example about class and object in Java?

29th Apr 2019, 5:45 AM
Md. Asiful Hoque Prodhan
Md. Asiful Hoque Prodhan - avatar
3 Answers
+ 6
Why not read and understand the Java tutorial on Sololearn. Don't just gloss over it like you probably did the first time.
29th Apr 2019, 6:42 AM
Sonic
Sonic - avatar
+ 3
imagine a human, what does human have in general ? lets say, a name, race, nationality. thats a class. its like a blueprint or general picture of something, but doesnt mean anything on its own. now imagine certain person, you can identify their name, maybe their race and nationality. thats an object, its an actual representation of "human"
29th Apr 2019, 6:34 AM
Taste
Taste - avatar
0
I will take is example on human being. In this case, the human is a class and the man or woman are are objects.
4th May 2019, 8:19 PM
Princess