DEV Community

loading...

Discussion on: Understanding Important Concepts in OOP (Object Oriented Programming) - Without any Code

Collapse
dynamicsquid profile image
DynamicSquid

This is very simple to explain and understand. Assume few students sitting inside a classroom. Then the classroom is the class, and the students are objects. Each student is a single object.

That is misleading. It should be that a Person is the class, and each of the students are objects. A Room is the class, and each classroom is an object.

Collapse
_ayushagarwal11 profile image
Ayush Agarwal Author

Thanks for pointing it out. I'll change it with another example.