Write a program that provides an example of destructors.
#include<iostream.h> #include<conio.h> class dest { int i; public: dest() { i=0; cout<<"Hello"<<endl; } void f() { cout<<"I= "<<++i<<endl; } ~dest() { cout<<"hi"; } }; main() { clrscr(); dest d1,d2; d1.f(); }