Interview Question

Interview Sunnyvale, CA

Design file system using OO

Answer

Interview Answer

1 Answer

0

Using composite pattern: class FileNode { String name; } class File extends FileNode { long size; } class Folder extends FileNode { Collection<FileNode> children; }

Romain on Sep 12, 2010

Add Answers or Comments

To comment on this, Sign In or Sign Up.