Sobes.tech
Junior — Senior

Creating an extendable class for interacting with the file system

livecode

Task condition

Develop a class that:

  1. Is capable of opening and closing a file;
  2. Provides methods for reading from and writing to the file;
  3. Is designed in such a way that it can be easily modified in the future (for example, to add logging, encryption, compression, etc.). Describe the proposed architecture and class interface:
  • What methods and properties will be included?
  • How to ensure the possibility of extension and guarantee safe usage?

Task type: system design