A class that uses different static function depending of a parameter passed in init