Question: C++ II B) Create a subclass of Order Class named Food that contains the following data fields (private varlables). Food Type (String) Food Name (String)
C++ II
B) Create a subclass of Order Class named Food that contains the following data fields (private varlables). Food Type (String) Food Name (String) . Quantity (int) Price (double) Include get and set methods for these fields, a default constructor with no parameter and a constructor that hast six parameters, order number, order type, food type, food name, quantity and price. Create another method named subtotal that performs multiplication of price and quantity and return the result as double type
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
