You are implementing a simple file system for an operating system for managing files and folders; similar to Windows or UNIX. Your design should follow the following guidelines       i)  The entire file system is represented by an object which is the reference to the root folder      ii)  Any folder in the file system may contain two types of items, folders (subfolder) and files and you want to treat both in the same way     iii) possible operations: getName, getPermission, listItem       What is the most appropriate design pattern?

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section8.5: A Case Study: Pollen Count File Update
Problem 4E
icon
Related questions
Topic Video
Question

You are implementing a simple file system for an operating system for managing files and folders; similar to Windows or UNIX. Your design should follow the following guidelines

      i)  The entire file system is represented by an object which is the reference to the root folder

     ii)  Any folder in the file system may contain two types of items, folders (subfolder) and files and you want to treat both in the same way

    iii) possible operations: getName, getPermission, listItem

 

 

 

What is the most appropriate design pattern?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage