You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassTruckimplementsVehicle {
@Overridepublicvoidproduct(intqtdWheels, floatproductionValue) {
System.out.println("Caminhão com " + qtdWheels + " rodas, e com valor de produção de: R$ " + productionValue);
}
}
Class Car
publicclassCarimplementsVehicle {
@Overridepublicvoidproduct(intqtdWheels, floatproductionValue) {
System.out.println("Carro com " + qtdWheels + " rodas, e com valor de produção de: R$ " + productionValue);
}
}
Class Motorcycle
publicclassMotorcycleimplementsVehicle {
@Overridepublicvoidproduct(intqtdWheels, floatproductionValue) {
System.out.println("Moto com " + qtdWheels + " rodas, e com valor de produção de: R$ " + productionValue);
}
}