subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
Answers: 1
question
Computers and Technology, 24.06.2019 21:40
is on drugs i swear i ask a question and its not showing whats going
Answers: 2
You know the right answer?
A class named CafeService contains ο‚· Two data members i. e. the orderID and the price of food item...
Questions
question
Mathematics, 06.05.2021 21:20
question
Mathematics, 06.05.2021 21:20
question
Mathematics, 06.05.2021 21:20
question
Mathematics, 06.05.2021 21:20
question
Mathematics, 06.05.2021 21:20
question
Mathematics, 06.05.2021 21:20
question
Mathematics, 06.05.2021 21:20