Dyskusje Q&A
java learning
0 głosów
1 Odpowiedź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 Głos
2 odpowiedziPopularne dzisiaj
Mobile number and similarity
1 Votes
Loops and conditions
2 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Coding issue
2 Votes
app for lessons
1 Votes
Alguém Português por aqui?
0 Votes
Any coding competitions?
1 Votes