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
Media on HTML
0 Votes
Code Playground
0 Votes
xampp
0 Votes
Is Sololearn better or Mimo.org?
1 Votes
Editor HTML
0 Votes
How to solve this
1 Votes
Java project
0 Votes