SHARE
TWEET

Untitled

a guest Jun 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class RasowyPies extends Pies {
  2.  
  3.     String rasa;
  4.     String ojciec;
  5.     String matka;
  6.    
  7.  
  8.     public RasowyPies(int identyfikator, String rasa, String wabiSie, String kolor, int wiek, String matka, String ojciec,
  9.             String imie, String nazwisko) {
  10.         super(identyfikator, wabiSie, kolor, wiek, imie, nazwisko,);
  11.         this.rasa = rasa;
  12.         this.ojciec = ojciec;
  13.         this.matka = matka;
  14.     }
  15.  
  16.     public String toString() {
  17.         String result = super.toString();
  18.         result += "\n" + " Pies rasowy" + "\n";
  19.         result += "----------------------------------------------\n";
  20.         result += " RASA: " + rasa + "\n";
  21.         result += " MATKA: " + matka + "\n";
  22.         result += " OJCIEC: " + ojciec + "\n";
  23.         result += " MIOT: " + wabiSie.charAt(0)-'A' + 1 + "\n";
  24.         result += "----------------------------------------------\n";
  25.         return result;
  26.     }
  27.  
  28. }
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