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:

Verified
Correct Answer:
Verified
Q2: The UML distinguishes an interface from other
Q3: Which of the following statements about abstract
Q4: Which keyword is used to specify that
Q5: When a superclass variable refers to a
Q15: If the superclass contains only abstract method
Q18: For which of the following would polymorphism
Q21: Declaring a method final means:<br>A) it will
Q30: Polymorphism allows for specifics to be dealt
Q32: Assigning a subclass reference to a superclass
Q33: Interfaces can have _methods.<br>A) 0<br>B) 1<br>C) 2<br>D)