CS212 Exams
Spring 1999 - Prelim
2

OO Programming I


In the OO Programming questions, you will be working with a simulated file system. For the purposes of these problems, a file system contains objects that include files, directories, and symbolic-links (also known as shortcuts or aliases). Every file system object has a name (a string). Directories contain a list of file objects; documents contain text (represented as a string); and symbolic links contain a pointer to another file object.

Write a set of appropriate definitions for <file-system-object>, <directory>, <document>, and <symbolic-link> classes using the description above. You may use either defclass or defstruct.


Solution

Return to CS 212 Prelim 2 - Spring 1999