Question: Given class B is a subclass of A , both classes have a method named print, which of the following statements are true? Check all

Given class B is a subclass of A, both classes have a method named print, which of the following statements are true? Check all that apply.
print in B may have more restrictive signatures if the print have different signatures.
if print in B overrides print in A, B cannot have more restrictive access modifiers.
print in B and print in A may have different signatures.
print in B may override print in A, when the two methods have the same signature.

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 Programming Questions!