oop - OO class diagram for directory structure in UNIX || Windows -
oop - OO class diagram for directory structure in UNIX || Windows -
this interview question asked me (not homework question). did give reply wanted professional sentiment on whether reply gave relevant or not. proper question was:
construct object oriented design unix || windows directory structure?
thanks in advance!!
since we're talking oo, assume wants concentrate on operations , structure.
a file , directory implement mutual interface involving mutual operations have own operations.
a tree construction involved, either directories , files part of tree or (as i'd do) tree external construction references files , directories.
i'd list mutual operations in interface (delete, getsize), file-only operations (open, read, write, ...) in file interface/object , directory-only operations (changedirectory, createchilddirectory, createfile) in directory object.
the point, however, open plenty question ensure there no right answer, rather it's chance evaluate how "think oo". there millions of solutions, bad ones ones didn't identify methods , members part of object model.
it's chance show off level of design skills--seeing if can intelligently communicate model others (uml amazingly helpful in this--working without uml can working without mutual language when comes heavy modeling)
oop class design
Comments
Post a Comment