-
Notifications
You must be signed in to change notification settings - Fork 0
/
company.cpp
74 lines (58 loc) · 1.52 KB
/
company.cpp
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include <bits/stdc++.h>
#include <stdio.h>
#include "company.h"
using namespace std;
COMPANY::COMPANY() : iTen("ta"), iMa("abc"), iGiasan(1) ,iGiatran(1),iGiadongcua(1), iKhoiluong("5,6") {
};
COMPANY::COMPANY(string iTen, string iMa, double iGiasan, double iGiatran, double iGiadongcua, string iKhoiluong) {
this -> iTen = iTen;
this -> iMa = iMa;
this -> iGiasan = iGiasan;
this -> iGiatran = iGiatran;
this -> iGiadongcua = iGiadongcua;
this -> iKhoiluong = iKhoiluong;
};
void COMPANY::setCOMPANY(string iTen, string iMa, double iGiasan, double iGiatran, double iGiadongcua, string iKhoiluong) {
this -> iTen = iTen;
this -> iMa = iMa;
this -> iGiasan = iGiasan;
this -> iGiatran = iGiatran;
this -> iGiadongcua = iGiadongcua;
this -> iKhoiluong = iKhoiluong;
};
void COMPANY::setTen(string Ten) {
this -> iTen = Ten;
};
void COMPANY::setMa(string Ma) {
this -> iMa = Ma;
};
void COMPANY::setGiasan(double Giasan) {
this -> iGiasan = Giasan;
};
void COMPANY::setGiatran(double Giatran) {
this -> iGiatran = Giatran;
};
void COMPANY::setGiadongcua(double Giadongcua) {
this -> iGiadongcua = Giadongcua;
};
void COMPANY::setKhoiluong(string Khoiluong) {
this -> iKhoiluong = Khoiluong;
};
string COMPANY::getTen() {
return iTen;
};
string COMPANY::getMa() {
return iMa;
};
double COMPANY::getGiasan() {
return iGiasan;
};
double COMPANY::getGiatran() {
return iGiatran;
};
double COMPANY::getGiadongcua() {
return iGiadongcua;
};
string COMPANY::getKhoiluong() {
return iKhoiluong;
};