Question: Java Which if the following is true about overriding and overloading? 1.Overriding always apply to methods in a parent and child class and overloading always

Java

Which if the following is true about overriding and overloading?

1.Overriding always apply to methods in a parent and child class and overloading always applies to methods in the same class.

2.Overriding always apply to methods in a parent and child class and overloading can applies to methods in the same class.

3.Both overloading and overriding refer to methods in a parent/child class relationship.

4.Both overloading and overriding must refer to methods in the same class.

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!