i think that parameter should be "String" instead "String?" What kind of command can be null?

Also I think superclass should declare some variables for constructor. In this case it should be command: String. Superclass also should have some code for command processing. For example: "if (command.equals("start"))" should be in superclass.