Обсуждения
where we use masiv[ ]?
0 голосов
1 ответjava learning
0 голосов
1 ответ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 голос
2 ответовАктуальное сегодня
Best language?
0 Votes
Need suggestions
0 Votes
Bro can you fix yt error?
0 Votes
Best code for creating games?
0 Votes
Java full stack
0 Votes
Calculator
0 Votes
Duration of heart refilling
0 Votes
progaming
0 Votes