What is the difference between class and object ?
Difference between class and object
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Object :
{i}Object is an instance of a class.
{ii}Memory space is allocated, when it is created.
{iii}It’s a physical entity.
{iv}Object is created many times as per your requirement.
Class:
{i}Class is a blueprint or template from which objects are created.
{ii}Memory space is not allocated , when it is created.
{iii}It’s a logical entity.
{iv}Class is declared once.