Superclass reference and subclass object in Constructor

http://ideone.com/afr8aG