-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDesign_test.cpp
27 lines (22 loc) · 1.03 KB
/
Design_test.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
// Design_test.cpp
#include "Design.h"
#include <iostream>
int main() {
// Create a Design object
Design designer(11.2, 40.11, "2024-01-01", 30, 1234567890, "John Doe", "123 Main St", "Designer", "Project1, Project2" );
// Display initial details
std::cout << "Initial Details:" << std::endl;
std::cout << "Position: " << designer.get_position() << std::endl;
std::cout << "Amount Designed Finished: " << designer.get_finished() << std::endl;
std::cout << "Design Current: " << designer.get_design_current() << std::endl;
// Update details
designer.set_position("Senior Designer");
designer.set_finished("Project 1");
designer.set_design_current("New Design Project");
// Display updated details
std::cout << "\nUpdated Details:" << std::endl;
std::cout << "Position: " << designer.get_position() << std::endl;
std::cout << "Amount Designed Finished: " << designer.get_finished() << std::endl;
std::cout << "Design Current: " << designer.get_design_current() << std::endl;
return 0;
}