212-15-4209_Solution to Discussinon Forum-1

212-15-4209_Solution to Discussinon Forum-1

by Hafizur Rahman Pranto -
Number of replies: 0

Differences between class and objects are as follows: 

1) A class is an object template. An object is a class instance.

2) When a class is created, it does not allocate memory, whereas an object does.

3) A class is a logical entity, whereas an object is a physical entity.

4) The class is declared once, but the object is created many times as needed.

5) Classes cannot be manipulated because they do not exist in memory, but objects can.


As example we can say, IBM Computers is a class. It's objects are Dell, HP, Intel computers.