a guest Jul 22nd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Cabrio extends Auto{ // Kind-Klasse ist spezieller
  2.   boolean dachOffen;
  3.   public String toString() { // toString() wird von Object geerbt: public(!) String toString()
  4.     return "Ich bin ein Cabrio und das Dach ist gerade ";
  5.   }  
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand