But is it good if i redirect command to that file? like PHP: public function onCommand(...){switch(...){case "quit":new Leave(...);}}
Bad idea. In that case, it is memory insufficient. Wrong concept. It is not different files. It is just different classes.