Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Urgent, need in java. Explain the answers like i'm a noob. Also, if you can, put answers in a screenshot as well. For question 1,
Urgent, need in java. Explain the answers like i'm a noob. Also, if you can, put answers in a screenshot as well.
For question 1, consider that inside the class Sky, we have already coded the following public class Sky private Color color public Sky( Color c) color- c 1. (20 pts) Consider the following header: public Color getColor); Is this a constructor, mutator or accessor? 2. (20 pts) Inside a method main, we see the following code Airplane.foo1(34.6); From this, reconstruct the header of method fool (which belongs to class Airplane); make appropriate assumptions if necessary. Write the method header as vour answer 3. (20 pts) Inside method main, we see code like Airplane anew AirplaneO: int n-a.foo2(Hello"); From this, reconstruct the header of method foo2 (which belongs to class Airplane) Write the method header as vour answer (40 pts) You coded the following class Grade: public class Grade private char letterGrade 4. public Grade(charg letterGrade-g public String toString line 10 line 11 return letterGrade; Vline 12 /line 13 When you compile, you get the following message Grade,java:12: incompatible types return letterGrade found: char required: String 1 error Explain what the problem is and how to fix itStep 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