-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathother.h
45 lines (32 loc) · 811 Bytes
/
other.h
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
38
39
40
41
42
43
44
45
#ifndef OTHER_H
#define OTHER_H
#include "film.h"
class Dokumentum :public Film{
String description;
public:
//Konstruktor
Dokumentum() :Film(), description("") {}
Dokumentum(const Film& other, const String& d) :Film(other), description(d) {}
//setDescription
void setDescription( String d) { description = d; }
//Gettterek
String getDescription() const { return description; }
//Fájl olvasó és író függvény
//Író
void Writer();
};
class Csalad :public Film{
String pegi;
public:
//Konstruktor
Csalad() :Film(), pegi("") {}
Csalad(const Film& other, const String& p) :Film(other), pegi(p) {}
//Setter
void setPegi(String p) { pegi = p; }
//Getter
String getPegi() const { return pegi; }
//Fájl olvasó és író függvény
//Író
void Writer();
};
#endif //OTHER_H