Update InheritApp.java

Add Dog class