#include <iostream> using namespace std; class Student { public: Student() { cout<<"Constructor Invoked"<<endl; } ~Student() { cout<<"Destructor Invoked"<<endl; } }; int main(void) { Student s1; Student s2; return 0; }To download raw file Click Here
Constructor Invoked Constructor Invoked Destructor Invoked Destructor Invoked
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions