logo

Crowdly

Mis on väljatrükk? class A { int clouds = 10; public int getClo...

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

Mis on väljatrükk?

class A {

int clouds = 10;

public int getClouds() {

return clouds;

}

}

class B extends A {

int getClouds = 20;

@Override

public int getClouds() {

return super.getClouds() + this.getClouds * 2;

}

}

A a = new A();

B b = new B();

A c = new B();

System.out.println(a.getClouds() + b.getClouds() + c.getClouds());

0%
0%
More questions like this

Want instant access to all verified answers on moodle.taltech.ee?

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