Question: Create a class called School. Include two private members representing the name of the school and the number of students enrolled. Create the appropriate accessors

Create a class called School. Include two private members representing the name of the school and the number of students enrolled.

Create the appropriate accessors and mutators.

Create a default constructor that assigns the number of students to 100 and the school name to "unnamed" ,and a 2-arg constructor that will allow both attributes to be set form the declaration.

Create at least one instance using either constructor. The declarations should look as follows:

School udc, gtown("Georgetown University", 10500);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!