Question: #9 The following code snippet (code-9-1.txt) shows two partial classes. Student class and person class each with the same method named reset. Is this an

#9 The following code snippet (code-9-1.txt) shows two partial classes. Student class and person class each with the same method named reset. Is this an example of overriding, overloading, or an error? code-9_1txt #10 Write the code that will call the reset method in the Person class in #9 above. #11 Write the code that will call the reset method in the Student class in #9 above. #12 If you try to copy the code from the code-9-1.txt file found in #9 and paste it into Eclipse, it will cause an error at the beginning of the Person class. What is the error? How do you fix it? #13 After you make the fix noted in #12 above, there is a triangle to the left of the second reset method in the Student class. What is the message when you hover over the triangle to the left of the second reset method in the Student class? #14 Can you overload a method if you only have one class? #15 Can you override a method if you only have one class? #16 Do you need an overloaded method or an overridden method to use polymorphism
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
