Question: 1) [5 pts] How would you declare an interface named Sports that has the following (show them in your answer as well): A method called

1) [5 pts] How would you declare an interface named Sports that has the following (show them in your answer as well): A method called jump that has no parameters and does not return anything. A method called throw that has one parameter called distance and is an integer and does not return anything. 2) [5 pts] Assuming the interface exist from 1) above. Give me the class header for a class named Football that would use this interface. 3) [5 pts] Assuming a parent class called GrandParents exist. How would you create a child class called GrandChild that would be a direct child of the class GrandParents? (You only have to give the class header). 4) [5 pts] Assume the child class GrandChild now exist from number 3) above. How would its constructor call the constructor of its parent (i.e. GrandParents) and pass to it a String variable called grandson. The variable grandson originally was a parameter inside the child class GrandChild (i.e. its constructor). 5) [5 pts] Using only method headers, write three overloaded constructors named weight.

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!