From ccedf6f5d89f375580ff6af40296aab953f9cd09 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 31 May 2022 20:52:26 +0300 Subject: Added work from today's practice --- .../13-Practice-31.05.2022/Control.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Year 1/Object-oriented Programming/13-Practice-31.05.2022/Control.h (limited to 'Year 1/Object-oriented Programming/13-Practice-31.05.2022/Control.h') 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; + } +}; -- cgit v1.3.1-26-gb76a