DEV Community

Saravanan
Saravanan

Posted 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)