Discussions Q&R
Vehicle API
-1 Vote
4 Réponsespublic 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 Vote
2 RéponsesNeed help with Roblox Lua!
-2 Votes
4 RéponsesAujourd'hui en vedette
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Please click me
0 Votes
Salut tout le monde
1 Votes
How can i isntall modules
1 Votes
Unity's loading time?
4 Votes