Sesiones de PyR
public 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 Respuestasjava learning
0 Votos
1 RespuestaEn tendencia hoy
How to allow one instance of exe
2 Votes
Python
1 Votes
Theater management help me
2 Votes
What has happened?
1 Votes
What should I add/improve ?
1 Votes
python beginner needing help
0 Votes