Modeling

Class extension mechanism 

Inheritance 

Polymorphism

Dynamic method lookup 

Constructor chaining

(1 + (2 * 3))

class Horse extends java.lang.Object {
  Horse() {
    super(); 
  }
}

class Unicorn extends Horse {
  Unicorn() {
    super(); 
  }
}

Now if I make this change: 

class Horse extends java.lang.Object {
  String name;
  Horse(String name) {
    super();
    this.name = name; 
  }
}

class Unicorn extends Horse {
  Unicorn() {
    super(); 
  }
}

Now Unicorn does not compile. 

(a) put back the constructor with no args in Horse

(b) adjust the Unicorn constructor accordingly 

Priya is not here 

Where is James Robinson? 

We worked out