subject

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;
} // end foo constructor

public abstract int calculate();
} // end class foo

any concrete subclass that extends class foo:
1) must implement a method called calculate.
2) will not be able to access the instance variable a.
3) neither (a) nor (b).
4) both (a) and (b).

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:00, kelseybell5522
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
image
Computers and Technology, 24.06.2019 13:00, NycLife
Why should you evaluate trends when thinking about a career path?
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, Suttyyyyyybear6056
What are the benefits to using presentations to organize and deliver information in the workplace? they add visual appeal. they are easy to update. they ensure accuracy. they can be created quickly. the work can't be lost.
Answers: 1
image
Computers and Technology, 25.06.2019 01:30, parislover2000
What controls can be found on the file tab of microsoft word
Answers: 1
You know the right answer?
Consider the abstract superclass below:
public abstract class foo
{
private int a...

Questions in other subjects:

Konu
Mathematics, 08.04.2020 17:21