Destructors in C plus plus.
So an object's destructor is its cleanup function.
So the destructor is invoked before an object is destroyed.
So destructors are almost never called explicitly so the compiler will ensure that the each object's
destructor is called as appropriate.
So you declare a class destructor with a tiled here tiled followed by the name of the class here tiled
here.
Uh, my date and time.
This way you can set the distractor here.
So.
Here we declare the my date and time destructor.
So here, let's let's write some code here that will.
Tell us when the object will print.
Some will print something on the console screen when our object is distracted here.
Object this distracted here.
So defining this destructor is optional.
So if you decide to implement a destructor, it must not take any arguments.
Examples of actions you might want to take in a destructor include releasing file handler handlers,
flushing network sockets and freeing dynamic objects.
So if you don't define a destructor, a default destructor is automatically generated.
So the default destructors behavior is to perform no action.
So you will you will learn a whole lot more about Destructors in the next lectures.