Question: If a subclass defines the same method name and the same parameter types for a method that appears in its superclass, which statement is true?

If a subclass defines the same method name and the same parameter types for a method that appears in its superclass, which statement is true? Group of answer choices the subclass method overloads the superclass method. the subclass method overrides the superclass method. the subclass has implemented the method on behalf of the superclass. a compiler error will occur.

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!