diff --git a/.vscode/settings.json b/.vscode/settings.json index e55699f..422fd2b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,27 @@ "xstddef": "cpp", "xstring": "cpp", "xtr1common": "cpp", - "xutility": "cpp" + "xutility": "cpp", + "array": "cpp", + "atomic": "cpp", + "bit": "cpp", + "*.tcc": "cpp", + "cctype": "cpp", + "clocale": "cpp", + "compare": "cpp", + "concepts": "cpp", + "cstdarg": "cpp", + "cwctype": "cpp", + "deque": "cpp", + "string": "cpp", + "unordered_map": "cpp", + "vector": "cpp", + "functional": "cpp", + "iterator": "cpp", + "memory_resource": "cpp", + "numeric": "cpp", + "random": "cpp", + "string_view": "cpp", + "numbers": "cpp" } } \ No newline at end of file diff --git a/Opdracht_1/Positie.h b/Opdracht_1/Positie.h index b3e6e61..5fd684e 100644 --- a/Opdracht_1/Positie.h +++ b/Opdracht_1/Positie.h @@ -1,8 +1,8 @@ -#include "Interface.h" - #ifndef Positie_H #define Positie_H +#include "Interface.h" + class Positie : public Interface{ private: int X; diff --git a/Opdracht_1/Robot.h b/Opdracht_1/Robot.h index 9a8a04f..f4c87cf 100644 --- a/Opdracht_1/Robot.h +++ b/Opdracht_1/Robot.h @@ -1,15 +1,15 @@ -class Positie; -class Interface; - #ifndef Robot_H #define Robot_H +class Positie; +class Interface; + class Robot{ private: Interface *P; public: Robot (Interface*); - ~Robot(); + virtual ~Robot(); virtual void run(); virtual void show(); }; diff --git a/Opdracht_1/class.drawio b/Opdracht_1/class.drawio index bea0a17..f4f4b54 100644 --- a/Opdracht_1/class.drawio +++ b/Opdracht_1/class.drawio @@ -1,17 +1,17 @@ - + - + - + @@ -28,6 +28,15 @@ + + + + + + + + + @@ -37,12 +46,54 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Opdracht_2/Auto.h b/Opdracht_2/Auto.h index c841e7f..ffa5c18 100644 --- a/Opdracht_2/Auto.h +++ b/Opdracht_2/Auto.h @@ -10,6 +10,7 @@ class Auto{ Snelheid* S; public: Auto(Snelheid*); + virtual ~Auto(); virtual void meetSnelheid(); };