/* Author: James Tam Version: October 19, 2015 Learning: Method overriding, access the super class method. */ public class Hero extends Person { private int heroicCount; public Hero() { heroicCount = 0; } public void doPersonStuff() { System.out.println("Pffff I need not go about mundane" + " nicities such as eating!"); timeDelay(); super.doPersonStuff(); timeDelay(); System.out.println("...well actually I do :$"); } public void doHeroStuff() { System.out.println("Saving the world for: truth!," + " justice!, and all that good stuff!"); heroicCount++; } // A 'helper method' that is to be used internally (by other) // class methods so it's functionality is hidden (private). private void timeDelay() { final long DELAY_TIME = 1999999999; for (long i = 0; i <= DELAY_TIME; i++); } }