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: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
Think about a recent customer service experience - either positive or negative. write a brief summary of that experience. now think about those four characteristics we look for in customer service representatives. how did the representative in your example stack up? write down your answer and give specific examples.
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
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
Computers and Technology, 20.02.2020 00:58
Questions on the website: 13722363