Dyskusje Q&A
I need help!
0 głosów
1 OdpowiedźHi my friends
0 głosów
1 Odpowiedźwhat next??
-1 Głos
1 OdpowiedźWhat's next on Sololearn?
3 głosów
1 Odpowiedź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 Głos
2 odpowiedziif 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 głosów
16 odpowiedziProgramming language
0 głosów
1 OdpowiedźAny ideas for web designing?
0 głosów
2 odpowiedziPopularne dzisiaj
Time up code for data revision
0 Votes
Best Python Calculator Code
1 Votes
New code
1 Votes
Clean Code
3 Votes
Hello Everyone
0 Votes
PHP
1 Votes