Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following code segment will be used for the next block of questions. The code in the class Sea is complete, and the main Program
The following code segment will be used for the next block of questions. The code in the class Sea is complete, and the main Program contains only a partially completed main program (in other words there are no additional functions, but there could be more code in the main function). Also some of these questions may have more than one correct answer listed - you should mark ALL that apply in these cases (4 points each unless otherwise indicated): class Sea { public: Sea(); void sail (double n); int riddle(); private: double wind = 0.0; int water; }; int main() { Sea my Sea; Sea *yourSea = new Sea(mySea); // // The rest of the code follows from this point } Sea:: Sea() { water = 1; } void Sea:: sail (double n) { wind = n; } int Sea::riddle() { return water; } Question 17 4 pts In the code above, the function Seal) is an example of (Mark ALL that apply): Note: Some of the following questions may have multiple answers. Choose ALL responses that are answers to these questions. Do NOT Guess, Carmen takes points off for wrong answers. An accesor function A constructor A friend function A mutator function None of these options
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