Question: For the following questions, state which SOLID Principle the code violates. You are allowed unlimited time to complete this. Write which principle you think it

For the following questions, state which SOLID Principle the code violates. You are allowed unlimited time to complete this. Write which principle you think it violates and WHY. I am expecting at least 1 sentence, not one word. Not answering the WHY question will result in 1.5 points being immediately marked off. I will give partial credit if at minimum if you can explain why you respond the way you do. Question 1 1 1 1 6 v class Journal 7 { 8 private: 9 Database db; 10 11 public: 12 Journal (); 13 void AddEntries(const std::string &text); 14 void RemoveJournalEntry(const std::string & text); std::string Get JournalData() const; 16 void SaveDbToFile(const std::string &fileName); 17 18 }; 15 1 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
