Question: Choose the correct syntax to declare a variable of class type College using its default constructor and then assign the variable using an anonymous object.
Choose the correct syntax to declare a variable of class type College using its default constructor and then assign the variable using an anonymous object.
College school; school = College();
College school = College();
College school(College());
College school(); school = College;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
