Question: The DoesEverything class does everything, and does it well. However, you want to create a DishWasher class which only washes dishes. Instead of rewriting the
The DoesEverything class does everything, and does it well. However, you want to create a DishWasher class which only washes dishes. Instead of rewriting the class from scratch, use the exsiting class to provide the functionality. rog.h #ifndef PROGH #define PROG H #include class DoesEverything public: void washDishes; void vacuumLivingRoom; void fixCar; void cookDinner; void makeBed; ; class DishWasher : public DoesEverything public: void washDishes DoesEverything: :washDishes; ; #endifRunning Tester.cpp ass pass fail fail fail fail dewashDishes: Washing the dishes. Expected: Washing the dishes. dwwashDishes: Washing the dishes. Expected: Washing the dishes. DishWasher can vacuum living room: true Expected: false DishWasher can fix car: true Expected: false DishWasher can make bed: true Expected: false DishWasher can cook dinner: true Expected: false core
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
