Sesiones de PyR
java learning
0 Votos
1 Respuestapublic class Vehicle {
int maxSpeed;
int wheels;
String color;
double fuelCapacity;
void horn() {
System.out.println("Beep!");
}
}
class MyClass {
public static void main(String[ ] args) {
Vehicle v1 = new Vehicle();
Vehicle v2 = new Vehicle();
v1.color = "red";
v2.horn();
System.out.println(v1);
}
}
Explain its outcome. I am unable to get the last line of outcome.
-1 Voto
2 RespuestasEn tendencia hoy
Losing hearts
1 Votes
Someone explain it... Plz!!!
1 Votes
Question ❓
0 Votes
Programming
0 Votes
Web development
0 Votes
Help me
0 Votes
Criar aplicativo
0 Votes