logo

Crowdly

Browser

Add to Chrome

У програмі визначено клас Shapeі його спадкоємець клас Circle: 1 class Shape ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

У програмі визначено клас Shapeі його спадкоємець клас Circle:

1 class Shape {

2 double square;

3 Shape (double r) {

4 square = 3.14 * r * r;

5 }

6 }

7 class Circle extends Shape {

8 double r;

9 Circle (double rad) {

10 r = rad;

11 super (rad);

12 }

13 }

Виконання програми завершилося помилкою. Які зміни необхідно включити в текст програми, щоб виключити помилку?

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome