To understand the concept of constructors and destructors in C++. To study how constructors initialize objects automatically. To learn how destructors free memory and clean up resources. To implement ...
Data members: roll_no, name, and fee. A default constructor to input values for name, roll_no, and fee. A display() function to show these values. Inside the constructor: Prompt the user to enter the ...