Lecture 18
8
Designing a ShellCommand object
•MkdirCommand extends ShellCommand (18)
•Constructor (24)
–super invokes ShellCommand constructor, telling it help string and argument string for mkdir
•implement abstract method doIt (37)
–next token on line is the name of the Directory to be made
–tell Directory constructor the name, owner, parent
–public void doIt( StringTokenizer args, Shell sh )
–{
–  String filename = args.nextToken();
–  new Directory(filename, sh.getUser(), sh.getDot());
–}