Oops / Basics / What is class and object ?
Class & Object
-
Note
1. Class
1. Class is the blueprint of an object
2. It contains properties and methods
3. No memory is allocated for the class
2. Object
1. Object is instance of a class
2. It contains data and methods
3. Allocate memory when creating an object using the keyword "new"
MANVIA BLOG