DEV Community

Saravanan
Saravanan

Posted on • Edited on

Day - 1 Definition of Object and Class

(1) what is object?

  • An object is a fundamental concept in object-oriented programming(oops) -It represent a real world entity -It is also called real time entity, physical entity and combination of state and behavior -state(attributes or properties) -behavior(method or function)

(2) What is class?
-Class is a blueprint or template for creating object
-Class is a group of similar object
-object consume space, class doesn't consume space

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay