Dyskusje Q&A
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 odpowiedziProgramming language
0 głosów
1 Odpowiedź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 głosów
16 odpowiedziAny ideas for web designing?
0 głosów
2 odpowiedziNewb
2 głosów
3 odpowiedziproblem with asterisk
1 Głos
1 OdpowiedźHaha I'm getting better
0 głosów
2 odpowiedziWho wants Lua script?
3 głosów
2 odpowiedziPopularne dzisiaj
Using Python on VScode
2 Votes
Python Developer
0 Votes
Average of Two Numbers
0 Votes
Wayss
0 Votes
fully dynamic arrays
1 Votes
Hearts
0 Votes