SHARE
TWEET

404 Kompetenz: Objekterstellung

a guest Sep 14th, 2017 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.*;
  2.  
  3. public class Uhr {
  4.     public  String farbe, marke;
  5.     public String anzeige;
  6.     public int nummer;
  7.    
  8.     public static void main(String[] args) {
  9.         Uhr myUhr = new Uhr();
  10.        
  11.         myUhr.nummer = 56423;
  12.         myUhr.farbe = "blau";
  13.         myUhr.marke = "Casio";
  14.         myUhr.anzeige = "digital";
  15.     }
  16. }
RAW Paste Data
Top