write a class named retailitmSolutionclass retailitm float

write a class named retailitm

Solution

class retailitm

{

float cost;

int quantity;

public:

void setCost(float c)

{

cost = c;

}

void setQuantity(int q)

{

quantity = q;

}

float getCost()

{

return cost;

}

float getQuantity()

{

return quantity;

}

}

Please let me know if i need to add any other functionality

write a class named retailitmSolutionclass retailitm { float cost; int quantity; public: void setCost(float c) { cost = c; } void setQuantity(int q) { quantity

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site