Junior — Senior
Creating an extendable class for interacting with the file system
livecode
Task condition
Develop a class that:
- Is capable of opening and closing a file;
- Provides methods for reading from and writing to the file;
- 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