โ† SAP questions
Low-Level DesignReported in a candidate post, Dec 2021

UML Diagram for File System

Filed under SAP

The question

Design a UML diagram for a file system where a file is a file, a folder is also a file, a file cannot contain other files, but a folder can contain files or folders, incorporating Association, Aggregation, and Composition.

No write-up yet. Related questions below have one.

Related SAP questions

Collected from public candidate posts and coding forums. Updated Nov 2026.