Q&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
Functions in python
2 Votes
HTML
1 Votes
For Mobile app
0 Votes
Answer please
0 Votes
I need advice
0 Votes
I need advice
0 Votes