SHARE
TWEET

Untitled

a guest Jul 15th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private String farbe;
  2.     private int anzahlDerRaeder;
  3.     public Nummer14Fahrzeug(String farbe, int anzahlDerRaeder) {
  4.         this.farbe = farbe;
  5.         this.anzahlDerRaeder = anzahlDerRaeder;
  6.     }
  7.     public String getFarbe() {
  8.         return farbe;
  9.     }
  10.     public int getAnzahlDerRaeder() {
  11.         return anzahlDerRaeder;
  12.     }
  13.     public void setFarbe(String farbe) {
  14.         this.farbe = farbe;
  15.     }
  16.     public void setAnzahlDerRaeder(int anzahlDerRaeder) {
  17.         this.anzahlDerRaeder = anzahlDerRaeder;
  18.     }
  19.     public String toString(){
  20.         return String.format("Fahrzeug: \nFarbe: %s\nRäder: %s", farbe, anzahlDerRaeder);
  21.     }
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
 
Top