Hard
Which modification of the following code WILL NOT make the output be "success" ?
class A {
public void talk() {
echo "success"
}
}
class B extends A {
public void talk() {
echo "fail"
}
}
A a = new B();
a.talk();
Author: SamuelStatus: PublishedQuestion passed 483 times
Edit
-1
Community Evaluations