Обсуждения
What's next on Sololearn?
3 голосов
1 ответ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 ответовProgramming language
0 голосов
1 ответif i download the programs for c++ on my pc ( codebuilds and the compiler ) and i want to write a program in my package ( workspace ) i create a new file and write smthing beginning
#include <iostream>
using namespace std;
int main ()
{
...
}
and i want to run it, it always runs this first program : Hello World. and not my written program how can i run just my written program ?
have i maybe to write anything else as
int main () {} ?
0 голосов
16 ответовAny ideas for web designing?
0 голосов
2 ответовproblem with asterisk
1 голос
1 ответHaha I'm getting better
0 голосов
2 ответовWhat is Wrong with my code?
1 голос
1 ответAbout the head part of html
1 голос
1 ответAddition of game development course
3 голосов
1 ответWho wants Lua script?
3 голосов
2 ответовАктуальное сегодня
Marquee
1 Votes
Any Advise?
1 Votes
RUST'S FUTURE
1 Votes
Popsacles Aufgabe
1 Votes
Button In C++
1 Votes