Skip to content

Instantly share code, notes, and snippets.

@olivierpierre
Last active November 5, 2021 13:54
Show Gist options
  • Save olivierpierre/d93c073badc406f9ac64d3eb9e768771 to your computer and use it in GitHub Desktop.
Save olivierpierre/d93c073badc406f9ac64d3eb9e768771 to your computer and use it in GitHub Desktop.
@@ -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