Question: For this, you are going to need some classes. Grill, Hotdog, and Person. The goal is to show how two different objects can both do

For this, you are going to need some classes. Grill, Hotdog, and Person. The goal is to show how two different objects can both do something to the same other object. 1. Create those classes 2. Create local Grill variable in main 3. Dynamically create Hotdog and a Person 4. Give Grill a method that takes a hotdog pointer and sets a cooked flag in the hotdog to true 5. Give Person a method that takes a hotdog pointer and outputs that flag 6. Make main call those two methods Use C++ Class names are singular and capitalized Function names are capitalized Curly brackets go on their own line Local variables start with a lowercase 't, then use camel case: MyLocalVariable Member variables start with a lowercase 'm, then use camel case: mMyMemberVariable Spaces are inside the parentheses: if(tCheck)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
