A good answer might be:No---It is an error if a child defines a method with the same signature as a parent method, but with a different return type. | |||||||||||||
More PracticeNon-abstract children must always override the abstract methods of their parents. In Java that is. It is less clear if this is desirable in real life. Here is our situation:
Examine each of the following choices for filling the blank. What will the new definition do? Override the parent's method, define an additional method, or be an error? (If the choice defines an additional method, assume that the required method will also be defined.)
| |||||||||||||
QUESTION 4:Say that a child class defines just one method, and that method has the same name as the parent's abstract method, but with a different signature. Must the child class be abstract? Click Here after you have answered the question |