What is Class & Object

Class-A class is a Template. A class defines state(instance variables) and behavior(All Methods) that an object can exhibit.

 

Object-An instance of a class. We create an object using new kewords. We can create multiple objects of the same class.