Solved

Consider the Abstract Class Below

Question 24

Multiple Choice

Consider the abstract class 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) Will not be able to instantiate an object of class Foo.
D) All of the above.

Correct Answer:

verifed

Verified

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

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