Answered step by step
Verified Expert Solution
Question
1 Approved Answer
D HW2 2.pdf O of 5 | 1 x + file:///C/Users/Arcan/OneDrive/Desktop/Obajact%200/HW2 2.pdf - + Fit to page Page View Problem 1 (20 points)-True/False. Submit a
D HW2 2.pdf O of 5 | 1 x + file:///C/Users/Arcan/OneDrive/Desktop/Obajact%200/HW2 2.pdf - + Fit to page Page View Problem 1 (20 points)-True/False. Submit a file named Answers.doc Answer the following true/false questions using the following code. You must correctly state WHY your answer is true or false in order to receive credit. All read aloud Addrates 6 % int main(int arge, char **argv) string person; Rider r1("Yaris", 45); Rider r2(49); Amusement park a1(3); al.get_ride(1).add line(rl); Amusement park a2 (2); int n=a2.get_ride(1).add_line(r2); return 0; 1. If the add_line() function is kept in the Ride class, then the get_ride() function must also be in the Ride class. 2. We can assume that the Rider class has at least three constructors. 3. We can assume from the above code alone that using namespace std; is used. 4. get ridel) is a private function. 5. We can tell for sure what class the add_line() function is in. 6. We can assume the Amusement park class has an overloaded constructor. To +hi ra n +a ++la rats to af-ho Liaisatiani- . 9:38 PM Type here to search 2/16/2020 1. If the add_line() function is kept in the Ride class, then the get_ride() function must also be in the Ride class. 2. We can assume that the Rider class has at least three constructors. 3. We can assume from the above code alone that using namespace std; is used. 4. get_ride() is a private function. 5. We can tell for sure what class the add_line() function is in. 6. We can assume the Amusement park class has an overloaded constructor. 7. From this code, we can tell what the return type of the add_line() function is 8. We can tell for sure what class the get_ride() function is in. 9. From this code, we can tell what the return type of get_ride() is. 10. There are the same number of objects created as there are number of classes used
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started