Question: (5 pts) Suppose you have a class Student with private data members as shown below. You could write a constructor like this: private int pern

(5 pts) Suppose you have a class Student with private data members as shown below. You could write a constructor like this: private int pern std:string nane: Student: : Student (int thePerm std: string theName) I perm- thePerm name theName However, there is an alternate way to initialize data members in the so called "constructor initialization section" described in Section 10.2 of PS. Rewrite this constructor so that the body is an empty set of braces, and the code is moved to the so-called "constructor initialization
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
