Learn more in the app.
View in app
Creating abstract class - Java Quiz Question
What is the output of the following program?
Cat Rabbit Lion
Cat Animal Animal
Compilation Error at LINE A, since a class with no abstract methods can not be declared as abstract
Compilation Error at LINE B, since overridden methods return type can not be changed
Compilation Error because of some other reason