Class with runtime type determination.