New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Ecma Script Related
0 Votes
5 Answerspublic&static
0 Votes
1 AnswerAbout ideas for Sololearn app
11 Votes
7 AnswersPython RSA Keys
0 Votes
18 AnswersEncrypting in Python
1 Vote
4 AnswersReally SQL is too hard ?
0 Votes
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 AnswersHot today
Help
1 Votes
What did I do wrong ??
0 Votes
About code
1 Votes
Quick question 🤔
1 Votes
Recursion
0 Votes
I need some help
1 Votes
Let Const Var
2 Votes
debugging course
2 Votes
How to mentione names in code?
1 Votes