-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFridgeFactory.cpp
More file actions
37 lines (29 loc) · 1.07 KB
/
FridgeFactory.cpp
File metadata and controls
37 lines (29 loc) · 1.07 KB
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
#include "FridgeFactory.h"
#include <Windows.h>
void FridgeFactory::setFridgeWorkingTemperature(double fridgeWorkingTemperature) {
this->fridgeWorkingTemperature = fridgeWorkingTemperature;
}
void FridgeFactory::setFridgeNumOfRacks(int fridgeNumOfRacks) {
this->fridgeNumOfRacks = fridgeNumOfRacks;
}
double FridgeFactory::getFridgeWorkingTemperature() {
return fridgeWorkingTemperature;
}
int FridgeFactory::getFridgeNumOfRacks() {
return fridgeNumOfRacks;
}
void FridgeFactory::print() {
Factory::print();
cout << "Çàïîäñêàÿ ðàáî÷àÿ òåìïåðàòóðà õîëîäèëüíèêà:" << fridgeWorkingTemperature << endl;
cout << "Êîë-âî ïîëîê â çàâîäñêîì õîëîäèëüíèêå: " << fridgeNumOfRacks << endl;
}
void FridgeFactory::produceFridges() {
cout << "(çâóêè ñòàíêîâ...)";
for (int i = 0; i < 6; i++) {
Sleep(1000);
cout << ".";
}
cout << endl << "Ñåé÷àñ ñ êîíâååðà èäóò íîâûå õîëîäèëüíèêè. Îíè èìåþò ðàáî÷óþ òåìïåðàòóðó "
<< fridgeWorkingTemperature << " ãðàäóñîâ öåëüñèÿ è "
<< fridgeNumOfRacks << " ïîëîê (îòäåëåíèé) äëÿ õðàíåíèÿ ïðîäóêòîâ." << endl;
}