Обсуждения
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 ответовАктуальное сегодня
Is this realistic enough?
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Need friends
0 Votes
Python
1 Votes