Sarah P.

asked • 09/06/20

Johhny did the method overriding of mA() method in class B as shown below. What exactly did he do wrong?

public class A {

public double mA() {

// code

}

}


public class B extends A {

public int mA() {

// code

}

}

2 Answers By Expert Tutors

By:

Jesse P. answered • 09/11/20

Tutor
4.7 (19)

Part of my Degree

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.