logo

Crowdly

Mis on koodi väljund? public class Main { public static void main(St...

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

Mis on koodi väljund?

public class Main {

public static void main(String[] args) {

Car myNewCar = new Car();

Engine customEngine = new Engine();

myNewCar.sayEnginePower();

}

}

class Engine {

public int powerWt = 75;

}

class Car {

Engine engine;

public void setUpEngine(Engine engine) {

this.engine = engine;

}

public void sayEnginePower() {

System.out.println("My engine power is: " + engine.powerWt + " WT");

}

}

0%
0%
0%
0%
0%
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!