Question: [Short answer] Which line contains a default constructor 5 class Student{ 6 private: 7 int id; 8 string name; 9 float gpa; 10 public: Student():Student(

 [Short answer] Which line contains a default constructor 5 class Student{

[Short answer] Which line contains a default constructor 5 class Student{ 6 private: 7 int id; 8 string name; 9 float gpa; 10 public: Student():Student(" ",0,0){} 12 Student(string n, int d, float g){ 13 name = n; 14 id = d; 15 gpa = gi 16 } 17 void setID(int d){id = d;} 18 void setName(string n){name = n;} 19 void setGPA(float f){gpa = f;} 20 int getID() const{return id;} 21 string getName() const {return name; } 22 float getGPA) const {return gpa;} 23 }; Your answer [Short answer] Which line numbers demonstrates accessors? List the line numbers from the smallest to the largest separated by comma. Your answer must not contain any spaces.* 13 5 class Student{ 6 private: 7 int id; 8 string name; 9 float gpa; 10 public: Student():Student(" ",0,0){} 12 Student(string n, int d, float g){ name = n; 14 id = d; 15 gpa = g; 16 } 17 void setID(int d){id = d;} 18 void setName(string n){name = n;} 19 void setGPA(float f){gpa = f;} 20 int getIDO const{return id;} 21 string getName() const {return name; } 22 float getGPA) const {return gpa;} 23 }; Your

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!