-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMagazine.cpp
More file actions
23 lines (19 loc) · 740 Bytes
/
Copy pathMagazine.cpp
File metadata and controls
23 lines (19 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// Created by isido on 11/28/2023.
//
#include "Magazine.h"
using namespace std;
Magazine::Magazine(int itemUniqueID, string itemTitle, string itemAuthor, string itemPublicationYear, bool itemAvailability, string itemMagazine_Type)
: ItemsInLibrary(itemUniqueID, itemTitle, itemAuthor, itemPublicationYear, itemAvailability, "Magazine"), issueNo("Issue 225, Volume 36"){}
string Magazine::getIssueNo()const{
return issueNo;
}
void Magazine::setIssueNo(const string& newIssueNo) {
issueNo = newIssueNo;
}
void Magazine::displayMagazineInfo(){
cout << "\n=== Magazine ==="<<endl;
cout << "Journal Issue Number: " << issueNo <<endl;
ItemsInLibrary::displayInfo();
cout << "Type: " << "Magazine" <<endl;
}