-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent.hpp
37 lines (28 loc) · 945 Bytes
/
student.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef STUDENT_HPP
#define STUDENT_HPP
#include <string>
#include <vector>
#include <iostream>
#include "libraryuser.hpp"
using namespace std;
class Student : public LibraryUser{ //students can borrow fewer books than teachers
bool graduated;
int borrow_limit;
vector <string> valid_genres = {"Fantasy", "Romance", "Sci-fi"};
public:
Student(); //default constructor
Student(string name, int user_id, int borrowed_count, bool graduated, int limit); //parametrized constructor
int get_borrow_limit();
//PURPOSE: Get access to the borrow limit
//INPUT: None
//OUTPUT: The borrow limit number of the student
vector <string> get_genres();
//PURPOSE: Get access to the valid genres for a student
//INPUT: None
//OUTPUT: The valid genres for a student
void print();
//PURPOSE: print out all the details about a student user
//INPUT: None
//OUTPUT: None
};
#endif