Question: Answere This Java Program Where is Overriding and where is Overloading in the given code? public class Test ! public static void main(string[] args) {

Answere This Java Program

Answere This Java Program Where is Overriding and where is Overloading in

Where is Overriding and where is Overloading in the given code? public class Test ! public static void main(string[] args) { Aa = new A(); a. p(10); a.p(10.0); public class Test public static void main(String[] args) { A a = new A(); a.p (10); a.p(10.0); } 3 class B public void p (double i) { System.out.println(i 2); class B public void p(double i) { System.out.println(i 2); 1 } class A extends B class A extends B! public void pidouble i) { System.out.println(i); public void p(int i) System.out.println(i); }

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!