1.

What is the difference between constructor & destructor?

Answer»
S.noConstructorDestructor
1.It ALLOCATES the MEMORY to an object.It deallocates the memory of an object.
2.It accepts argument.It does not take an argument.
3.In a CLASS, there can be multiple constructors.In a class, there can only be ONE destructor.


Discussion

No Comment Found