diff options
Diffstat (limited to 'week11/Exercise02')
| -rw-r--r-- | week11/Exercise02/Employee.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/week11/Exercise02/Employee.h b/week11/Exercise02/Employee.h index 7be3574..086f65d 100644 --- a/week11/Exercise02/Employee.h +++ b/week11/Exercise02/Employee.h @@ -7,4 +7,9 @@ protected: char name[512]; char position[128]; char department[64]; + +public: + // Може да имаме полиморфизъм, затова се нуждаем от виртуален деструктор + // В бъдеще ще използваме = default вместо {} + virtual ~Employee() {}; }; |
