diff options
Added work from today's practice
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/13-Practice-31.05.2022/Control.h | 17 |
diff --git a/Year 1/Object-oriented Programming/13-Practice-31.05.2022/Control.h b/Year 1/Object-oriented Programming/13-Practice-31.05.2022/Control.h new file mode 100644 index 0000000..ba56100 --- /dev/null +++ b/Year 1/Object-oriented Programming/13-Practice-31.05.2022/Control.h @@ -0,0 +1,17 @@ +#include "Location.h" +#include "Size.h" + +class Control { + Location location; + Size size; + +public: + virtual void setDataDialog() = 0; + virtual void changeSize(Size newSize) { + size = newSize; + } + + Location get_loc() const { + return location; + } +}; |
