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
Get step-by-step solutions from verified subject matter experts
