Last active
November 5, 2021 13:54
-
-
Save olivierpierre/d93c073badc406f9ac64d3eb9e768771 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -58,7 +58,7 @@ | |
void print(); | |
/* getters and setters */ | |
- void updateAuthor(const char *newTitle); | |
+ void updateAuthor(const char *newAuthor); | |
char *getAuthor(); | |
private: | |
@@ -74,7 +74,7 @@ | |
void print(); | |
/* getters, setters */ | |
- void updateAuthor(const char *newTitle); | |
+ void updateAuthor(const char *newAuthor); | |
void updateIssue(int newIssue); | |
char *getAuthor(); | |
int getIssue(); | |
@@ -98,13 +98,11 @@ | |
int getIssue(); | |
private: | |
- /* In addition to the base Document's attributes, a magazine has an author | |
- * as well as an issue number */ | |
- char *author; | |
- int _issue; | |
-}; | |
+ /* In addition to the base Document's attributes, a magazine has an issue | |
+ * number */ | |
+ int _issue; }; | |
-/* One instance of that c;ass represents a library */ | |
+/* One instance of that class represents a library */ | |
class Library { | |
public: | |
Library(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment