Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
where we use masiv[ ]?
0 Stimmen
1 Antwortjava learning
0 Stimmen
1 Antwortpublic 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 Stimme
2 AntwortenHeute heiß
Please help 🙏🏻
1 Votes
which line would you use irl?
1 Votes
What's the error in this code?
0 Votes
Angular
2 Votes