Day - 1 Definition of Object and Class

Day - 1 Definition of Object and Class

Publish Date: Dec 4 '24
0 0

(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

Comments 0 total

    Add comment