Q&A Discussões
java learning
0 Voto
1 Respostapublic 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 RespostasQuente hoje
overloading operators << >>
1 Votes
how does this code function?
2 Votes
.
1 Votes
My question is about python?
0 Votes
.
0 Votes
Where is my badge?
1 Votes
i need to learn Coding
0 Votes
Quiz duel
0 Votes