Question: Given a member function named set_age ( ( ) with a parameter named age in a class named Employee, what code would you use within

Given a member function named set_age ( ( ) with a parameter named age in a class named Employee, what code would you use within the function to set the value of the corresponding data member if the data member has the same name as the parameter?
A)Employee : : age ( = ) age:
B)Employee age ( = ) age ( : )
C)private:age ( = ) age
D)this ( > ) age = age :
 Given a member function named set_age ( ( ) with a

Gim a menbar function named set_age0) with a parameter named afe in a class namnd Employee, what code would you wie within the function to set the ratue of the cortesponding data tarmber if the taka member lat the sume naene as the paraeneter? taptione icope - oge: priveta *op = sat

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!