예제 #1
0
  public static void main(String[] args) {
    Dog one = new Dog();
    one.size = 70;
    Dog two = new Dog();
    two.size = 8;
    Dog three = new Dog();
    three.size = 35;

    one.bark();
    two.bark();
    three.bark();
  }
예제 #2
0
 public static void main(String[] args) {
   Dog d = new Dog();
   d.size = 40;
   d.bark();
 }