Object-Oriented Programming · Airbnb · Medium
Build a simple file-storage system that lives purely in memory; nothing needs to be read from or written to the real operating-system file system. The system keeps two kinds of records. A file record holds the file's name, its size, and who created it. A user record holds a user ID, that user's storage capacity, the files the user owns, how much capacity the user has consumed, and the remaining capacity, which is derived from the other values. The work is split into four…