Обсуждения
Why is my java code not working?
0 голосов
3 ответовEcma Script Related
0 голосов
5 ответовCan this code open private codes?
0 голосов
1 ответWhat is a parameterized constructor?
0 голосов
1 ответpublic&static
0 голосов
1 ответAbout ideas for Sololearn app
11 голосов
7 ответовPython RSA Keys
0 голосов
18 ответовAccess Modifiers Total Salaries
0 голосов
4 ответовHow can i solve this error?
1 голос
1 ответEncrypting in Python
1 голос
4 ответовAsymmetric Encryption - Python
0 голосов
5 ответовReally SQL is too hard ?
0 голосов
4 ответовpublic 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 голос
2 ответовАктуальное сегодня
Pig Latin
0 Votes
Someone can help me
0 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
Need a friend to study with
0 Votes
I’m new someone can help me
0 Votes
HTML community, HELP!!
0 Votes
I am a super beginner
0 Votes
What's doctype htMl
2 Votes