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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!