Question: cilass Student { public: void set _ SID ( int x ; void print _ SID ( ) ; private: int SID; } ; 3

cilass Student {
public:
void set_SID(int x;
void print_SID();
private:
int SID;
};
3a). Which one correctly define a function for the Student class?
A. void Student::set_SID(){SID =x}
B. int Student::set_SID(int x Student SID =x
C. int set_SID(){SID=x}
D. void Student::set_SID(int x){SID = x
 cilass Student { public: void set_SID(int x; void print_SID(); private: int

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!