Question: Write a project in Swift named noteTaker. The project will incorporate Optionals, Advanced Collections, Functions, Closures, Enums, Structs, Classes, Inheritance, and Properties. In this project,
Write a project in Swift named noteTaker. The project will incorporate Optionals, Advanced Collections, Functions, Closures, Enums, Structs, Classes, Inheritance, and Properties.
In this project, you will begin by creating a struct called a Note. Note will have some properties and a nested enum called PriorityLvl. Then you will build a class named Notebook that will store Notes in a Dictionary and be able to perform some basic functionality on the unordered collection of Notes. Then leveraging inheritance you will create a subclass of Notebook named OrderedNotebook that will enforce some order of Notes by adding a parallel array that stores the Dictionarys keys. You will also create a sorting method that accepts a closure so that sorting order can be determinedchanged at runtime.
The names & signatures of classes, structs, functions, and properties need to match those given here exactly More details are provided in the photo. Please give full, correct, checked that it works as required answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
