_
CLASS
_
WHAT : * class is tha blueprint or template that helps to creat tha real world entites.
why use : * class is used to avoid tha repected code.
* to orgainze code in tha neat way.
* class is tha creat many object easilly.
when : * when you want to creat multiple similer object
_
OBJECT_
what : * Real thing created from that design (like an actual car you drive).
*An instance of a class.
*It is a real-time entity created from a class.
*Object has state (data/variables) and behavior (methods/functions).
why use :
Reusability :Once you create a class, you can create many objects from it.
Memory Management: Each object has its own copy of variables (state).
Communication between objects: Objects can call methods of other objects.
## VARIABLE
Top comments (0)