Dyskusje Q&A
is sololearn working on a v2
0 głosów
3 odpowiedzipublic 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 Głos
2 odpowiedziPopularne dzisiaj
Inserting a photo in python
1 Votes
HOW TO CREATE A FORM?
0 Votes
System recommendation
0 Votes
How can I tag someone
3 Votes
Beginner Experiences
0 Votes
Please make it work.
1 Votes
????
0 Votes
hi
0 Votes
Sorting Algorithm
1 Votes