F&A Diskussionen
can anyone help me understand?
0 Stimmen
1 AntwortI need help!
0 Stimmen
1 AntwortHi my friends
0 Stimmen
1 Antwortwhat next??
-1 Stimme
1 AntwortWhat's next on Sololearn?
3 Stimmen
1 Antwortpublic 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 Stimme
2 Antwortenif 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 Stimmen
16 AntwortenProgramming language
0 Stimmen
1 AntwortAny ideas for web designing?
0 Stimmen
2 AntwortenHeute heiß
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Hello Everyone
0 Votes