Question: In a Java application: ClassA is an abstract class with an abstract method m 1 ( ) . ClassB is a subclass of ClassA. Based
In a Java application:
ClassA is an abstract class with an abstract method
ClassB is a subclass of ClassA.
Based on this, which of the following statements are valid?
If ClassA is final, abstract method must have an implementation in ClassA.
ClassB can be declared final so it does not need to implement method
If ClassB is abstract it does not need to implement method
If ClassB is not abstract it must provide an implementation of method
If ClassB is abstract method can be declared abstract final.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
