Question: Given this class declaration: class Socks { private: char size; string brand; string material; public: void setsize ( char newsize ) ; void setBrand (
Given this class declaration:
class Socks
private:
char size;
string brand;
string material;
public:
void setsizechar newsize;
void setBrandstring newBrand;
void setMaterialstring newMaterial;
char getsize;
string getBrand;
string getMaterial;
;
And declaring an object named mySocks, which of these would not be a valid function call.
mySocks.setMaterialstring "Cotton";
mySocks.getBrand;
mySocks.getMaterial;
mySocks.setBrandHanes;
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
