Question: Create a class called item. Each item should have private members Name (string) . Price (double) . Bar Code Number (string -the number overflows integer

 Create a class called item. Each item should have private members

Name (string) . Price (double) . Bar Code Number (string -the number

overflows integer and long long types) . Classification (string) Each item should

have (at a minimum) public members Constructors (default and overloaded) initialize name,

price, bar code, and classification. The classification should always be "general" in

Create a class called item. Each item should have private members Name (string) . Price (double) . Bar Code Number (string -the number overflows integer and long long types) . Classification (string) Each item should have (at a minimum) public members Constructors (default and overloaded) initialize name, price, bar code, and classification. The classification should always be "general" in the item class (despite overloaded constructor) . Set Item method- that sets the name, price, and bar code of the item. The classification shouldn't change in the set method Display method - displays the name of the item, the classification, the price, and the barcode . Derived class: fruit.h Create a class called fruit that inherits from the item class. Each fruit item should have private members . Sell by date's month (int) . Sell by date's day (int) . Sell by date's year(int) Each item should have (at a minimum) public members Constructors (default and overloaded) -initialize name, price, bar code, classification, and sell by date members. The classification should always be "fruit" in the item class (despite overloaded constructor). NOTE: You may need to use the Set Item method from item class to set some members . Set Item method - that sets the name, price, bar code, and sell by date members. The classification shouldn't change in the set method. NOTE: You may need to use the Set Item method from item class to set some members. . Display method-displays the name of the item, the classification, the price, the barcode number, and the sell by date. NOTE: You may need to use the display method from item class Create a class called item. Each item should have private members Name (string) . Price (double) . Bar Code Number (string -the number overflows integer and long long types) . Classification (string) Each item should have (at a minimum) public members Constructors (default and overloaded) initialize name, price, bar code, and classification. The classification should always be "general" in the item class (despite overloaded constructor) . Set Item method- that sets the name, price, and bar code of the item. The classification shouldn't change in the set method Display method - displays the name of the item, the classification, the price, and the barcode . Derived class: fruit.h Create a class called fruit that inherits from the item class. Each fruit item should have private members . Sell by date's month (int) . Sell by date's day (int) . Sell by date's year(int) Each item should have (at a minimum) public members Constructors (default and overloaded) -initialize name, price, bar code, classification, and sell by date members. The classification should always be "fruit" in the item class (despite overloaded constructor). NOTE: You may need to use the Set Item method from item class to set some members . Set Item method - that sets the name, price, bar code, and sell by date members. The classification shouldn't change in the set method. NOTE: You may need to use the Set Item method from item class to set some members. . Display method-displays the name of the item, the classification, the price, the barcode number, and the sell by date. NOTE: You may need to use the display method from item class

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!