123456789101112131415161718192021222324252627282930313233343536373839
class Bill { private: char _code[8];//code have 7 characters. string _name; float _price; public: string getName(); float getPrice(); void setName(string); void setPrice(float); Bill(); ~Bill(); }; string Bill::getName() { return _name; } float Bill::getPrice() { return _price; } void Bill::setName(string s) { _name = s; } void Bill::setPrice(float price) { _price = price; }
setcode()
getcode()