When a method in a subclass has the same signature as a meth

When a method in a subclass has the same signature as a method in a superclass (same name, same parameters and same return type) we say that the method in the subclass __________ the method in the superclass.

Solution

we say that the method in the sub class OVERRIDES the method in the super class

we invoke the method in super class using super key word which overrides the content in the sub class

When a method in a subclass has the same signature as a method in a superclass (same name, same parameters and same return type) we say that the method in the s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site