Write a destructor for the following class:
class Classroom
{
private:
string *student;
int numStudents;
int gradeLevel;
public:
Classroom();
~Classroom();
void display();
};
Classroom::Classroom()
{
int x;
cout > gradeLevel;
cout > numStudents;
student = new string[numStudents];
for(x = 0; x > student[x];
}
}
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q42: Match each term with the correct statement
Q43: Provide an example of chained operations and
Q44: Match each term with the correct statement
Q45: Match each term with the correct statement
Q46: When you use the new operator, is
Q48: Match each term with the correct statement
Q49: Match each term with the correct statement
Q50: Match each term with the correct statement
Q51: Match each term with the correct statement
Q52: Match each term with the correct statement
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents