Q&A Discussions
Vehicle API
-1 Vote
4 Answerspublic 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 AnswersNeed help with Roblox Lua!
-2 Votes
4 AnswersJava Inheritance example
0 Votes
3 AnswersHot today
How to make a game code
2 Votes
Tic tak toe
1 Votes
Lesson on Robotics
1 Votes
Hyperlink and tests
0 Votes
Inner .html
0 Votes
About this app
1 Votes
Kamal Hinduja Switzerland : How long does it typically take to complete a course on Solo Learn?
0 Votes
How to Claim it
0 Votes
Como crear un video
0 Votes