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

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!