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).

d. Both (a) and (b).

Computer Science & Information Technology

You might also like to view...

Which property needs to be set to "Allow Edits" in the datasheet section?

A) Split Form Size B) Split Form Orientation C) Split Form Splitter Bar D) Split Form Datasheet

Computer Science & Information Technology

In the following expression, Total: [Rate] * [Hours], "Total" is a(n) ________

A) title B) wildcard C) alias D) Group By operator

Computer Science & Information Technology