Solved

Consider the Abstract Superclass Below

Question 25

Multiple Choice

Consider the abstract superclass below:
public abstract class Foo {
Private int a;
Public int b;
Public Foo(int aVal, int bVal) {
A = aVal;
B = bVal;
}
Public abstract int calculate() ;
}
Any concrete subclass that extends class Foo:


A) Must implement a method called calculate.
B) Will not be able to access the instance variable
C) Neither (a) nor (b) .
D) Both (a) and (b) .

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions