-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJournal.cpp
More file actions
24 lines (19 loc) · 755 Bytes
/
Copy pathJournal.cpp
File metadata and controls
24 lines (19 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// Created by isido on 11/28/2023.
//
#include "Journal.h"
using namespace std;
Journal::Journal(int itemUniqueID, string itemTitle, string itemAuthor, string itemPublicationYear, bool itemAvailabliity, string itemJournal_Type)
: ItemsInLibrary(itemUniqueID, itemTitle, itemAuthor, itemPublicationYear, itemAvailabliity, "Journal"), journalName("Volume 100, Issue 3"){}
string Journal::getjournalName()const{
return journalName;
}
void Journal::setJournalName(const string& newJournalName){
journalName=newJournalName;
}
void Journal::displayJournalInfo(){
cout << "\n=== Journal ==="<<endl;
cout << "Journal Name: " << journalName <<endl;
ItemsInLibrary::displayInfo();
cout << "Item Type: " << "Journal" <<endl;
}