Computers and Technology

A class named CafeService contains  Two data members i. e. the orderID and the price of food item(s) served by
 A no-argument constructor to initialize both data fields with default values of “ord#0”, 0.0
 A parameterized constructor to initialize all data fields with user-defined values
Derive a class named StaffService from the class CafeService that holds the following:
 Two data members i. e.
o serviceFee,
o the cabinNumber to which the service has been made
 A function named totalCharges that returns total cost of an order (including serviceFee + price of food item(s) served)
 A parameterized constructor, which requires arguments for all of its own data fields as well as for the data fields of base class
 A member function named display() to show all the details of an order including orderID, price, and totalCharges
In the main() function, instantiate an object of class StaffService object and test the implementation of both classes through this object.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 05:00, alfarodougoy8lvt
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
image
Computers and Technology, 24.06.2019 16:00, achsahjosey
This isn't about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven't been able to get answers for my tests in like a week.
Answers: 2
image
Computers and Technology, 25.06.2019 02:00, doug26
What type of multimedia is a game cd? game cds are examples of multimedia
Answers: 1
image
Computers and Technology, 25.06.2019 11:10, lillian22
Plato: which view of report creation allows you to customize the report before the database program creates it?
Answers: 3
Do you know the correct answer?
A class named CafeService contains  Two data members i. e. the orderID and the price of food item...

Questions in other subjects:

Konu
Mathematics, 09.11.2020 19:10