Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcjęDyskusje Q&A
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
App doesnt work
3 Votes
Where can I write code for free
1 Votes
Project on HTML and CSS
2 Votes
Code Coach
2 Votes
Tutorial loop
1 Votes
Control Flow<<Time’s Up
0 Votes
Recent update issues?
1 Votes