Обсуждения
Required Initializers
0 голосов
1 ответI am creating an edm group
-2 голосов
1 ответHow to extend a class in learn java?
0 голосов
1 ответScope Resolution Operator
0 голосов
1 ответClass wizard
1 голос
1 ответIs it necessary.
1 голос
1 ответIs the Cpp scope declining??
0 голосов
1 ответI cant run my programme
-1 голос
1 ответWhat is a class?
0 голосов
1 ответWhy not fallow pattern?
-1 голос
1 ответThe name of getter and setter
1 голос
1 ответAccess modifiers declaration
0 голосов
1 ответhow do you make a iterator in c++?
0 голосов
1 ответWhy it will not showing compiler
-1 голос
1 ответcoding error
-1 голос
2 ответов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 ответовАктуальное сегодня
How to improve code readability
0 Votes
App
1 Votes
I NEED to make a game
0 Votes
Regarding course
0 Votes
Solved Grouping data
0 Votes
Android
0 Votes
what is python
0 Votes