Declare inner class constructor as public, so they are usable by subclasses.