• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu

Обсуждения

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.
classesjava
-1 голос
2 ответов
16th Aug 2016, 4:20 PM
Himanshu Mittal
Himanshu Mittal - avatar
< Предыдущий1...12371238Следующий >
Актуальное сегодня
Functions in python
2 Votes
HTML
1 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 Votes
Answer please
0 Votes
I need advice
0 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Why this code fails even without data race
0 Votes