fork download
  1. public class Main {
  2. public static void klasy(Urzadzenie u)
  3. {
  4. u.obliczZnizke();
  5. u.uruchom();
  6. u.sprzedarz();
  7. }
  8.  
  9. public static void main(String[] args)
  10. {
  11. Telefon t = new Telefon();
  12. klasy(t);
  13.  
  14. Toster t0 = new Toster();
  15. klasy(t0);
  16.  
  17. System.out.println();
  18. System.out.println(t.toString());
  19. System.out.println(t0.toString());
  20. }
  21.  
  22. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:2: error: cannot find symbol
	public static void klasy(Urzadzenie u)
	                         ^
  symbol:   class Urzadzenie
  location: class Main
Main.java:11: error: cannot find symbol
		Telefon t = new Telefon();
		^
  symbol:   class Telefon
  location: class Main
Main.java:11: error: cannot find symbol
		Telefon t = new Telefon();
		                ^
  symbol:   class Telefon
  location: class Main
Main.java:14: error: cannot find symbol
		Toster t0 = new Toster();
		^
  symbol:   class Toster
  location: class Main
Main.java:14: error: cannot find symbol
		Toster t0 = new Toster();
		                ^
  symbol:   class Toster
  location: class Main
5 errors
stdout
Standard output is empty