logo

Crowdly

Browser

Add to Chrome

Скільки разів метод volume() може бути викликаним у класі Main: class Clas...

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

Скільки разів метод volume()

може бути викликаним у класі

Main:

class Class {

     double a;

 

     Class (double a){

           this.a = a;

}

 

     void volume(double b

) { 

           double c = Math.pow(a, b);

System.out.print(c);

     }

}

 

class Main {

     public static void main(String[] args) {

 

           Class class = new Class(5);

           class.volume(2);

     }

}

More questions like this

Want instant access to all verified answers on virt.ldubgd.edu.ua?

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

Browser

Add to Chrome