i) Seminar s; // The statement will execute Function 1 of the class Seminar
Seminar s1(10);// This statement will execute Function 2 of the class Seminar
ii) Function 4 is Destructor. A destructor is called when an object of a class goes out of scope.
iii) Data encapsulation and data hiding.
Comments
Leave a comment