CIS242 Homework

Consider the following declarations:

class bagType

{

public:

void set(string, double, double, double, double);

void print() const;

string getStyle() const;

double getPrice() const;

void get(double, double, double, double);

bagType();

bagType(string, double, double, double, double);

private:

string style;

double l; double w;

double h;

double price;

};

bagType newBag;  //variable declaration

a. How many members does class bagType have?

b. How many private members does class bagType have?

c. How many constructors does class bagType have?

d. How many constant functions does class bagType have?

 

e. Which constructor is used to initialize the object newBag?

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.