✅ 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"); }}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!