Solved

Consider the Abstract Superclass Below

Question 2

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 A.
C) Neither (a) nor (b) .
D) Both (a) and (b) .

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents