Update SingleInheritanceDemo.java