Q&A Discussions
where we use masiv[ ]?
0 Votes
1 Answerjava learning
0 Votes
1 Answerpublic 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 AnswersHot today
Code suggestions
3 Votes
Sololearn Theme Changing
0 Votes
How to access private creations
0 Votes
I am new in python
0 Votes
Can we collab?
1 Votes
working with list > Game Machine
0 Votes
Calculator
0 Votes