✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
interface DoMath
{
double getArea(int rad);
}
interface MathPlus
{
double getVol(int b, int h);
}
/* Missing Statements ? */
Які два фрагменти коди потрібно вставити в кінці, щоб компіляція пройшла успішно?
class AllMath extends DoMath { double getArea(int r); }
interface AllMath implements MathPlus { double getVol(int x, int y); }
interface AllMath extends DoMath { float getAvg(int h, int l); }
class AllMath implements MathPlus { double getArea(int rad); }
abstract class AllMath implements DoMath, MathPlus { public double getArea(int rad) { return rad * rad * 3.14; } }