Website Summary Files Commits Branches @commit @diff @stats
path: root / Week07 / Exercise01 / Librarian.h
blob: 839a2589ace88a5687815f2124627e55f38d7b06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _LIBRARIAN
#define _LIBRARIAN

#include "String.h"

class Librarian {
	unsigned librarianNumber;
	String password;

public:
	Librarian(unsigned librarianNumber);
	// Ако направим поне един конструктор, то конструктора по подразбиране
	// спира да се създава автоматично
	Librarian();

	unsigned GetLibrarianNumber() const;

	void SetPassword(const String& newPassword);

	bool Login(unsigned librarianNumber, const String& password);
};

#endif /* _LIBRARIAN */