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
Get step-by-step solutions from verified subject matter experts
