Kwwiker

Dog

Aug 21st, 2020 (edited)
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Dog extends Animal{
  2.     int color;
  3.     public Dog(String name, int age, int color) {
  4.         super(name, age);
  5.         this.color = color;
  6.     }
  7.  
  8.     @Override
  9.     public void getSong() {
  10.         System.out.println("Гав");
  11.     }
  12. }
  13.  
RAW Paste Data