Object Oriented Programming
Object Oriented Programming
Abdul Mateen
Lecture 03
Static Member & Static Methods in C++
Properties of Destructor:
Destructor function is automatically invoked when the
objects are destroyed.
It cannot be declared static or const.
The destructor does not have arguments.
It has no return type not even void.
An object of a class with a Destructor cannot become a
member of the union.
A destructor should be declared in the public section of the
class.
The programmer cannot access the address of destructor.
Destructor in C++
11