-
Notifications
You must be signed in to change notification settings - Fork 0
/
Avion.h
32 lines (25 loc) · 1.06 KB
/
Avion.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
//Header fajl koji sadrzi deklaraciju klase Avion kao vidu transporta
#pragma once
#include "Transport.h"
class Avion :
public Transport
{
private:
string avioKompanija;
string serijskiBroj;
int godinaProizvodnje;
public:
Avion() {};
Avion(string naziv, string tip, string registracija, int id, string avioKompanija, string serijskiBroj, int godinaProizvodnje)
: Transport(naziv, tip, registracija, id), avioKompanija(avioKompanija),serijskiBroj(serijskiBroj),godinaProizvodnje(godinaProizvodnje) {};
~Avion() {};
void setAvioKompanija(string avioKompanija) { this->avioKompanija = avioKompanija; };
void setSerijskiBroj(string serijskiBroj) { this->serijskiBroj = serijskiBroj; };
void setGodinaProizvodnje(int godinaProizvodnje) { this->godinaProizvodnje = godinaProizvodnje; };
string getAvioKompanija() const { return avioKompanija; };
string getSerijskiBroj() const { return serijskiBroj; };
int getGodinaProizvodnje() const { return godinaProizvodnje; };
void insert_transport();
void display_all();
void update_transport();
};