logo

Crowdly

Mida prindib Vehicle boat = new Boat("Boaty McBoatface") ? class Vehicle {...

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

Mida prindib Vehicle boat = new Boat("Boaty McBoatface")?

class Vehicle {

public Vehicle() {

System.out.println("Vehicle");

}

}

class Boat extends Vehicle {

public Boat(String model) {

System.out.println(model);

}

}

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!