RomanovAleksandr / oop

0 stars 0 forks source link

Замечания по программе Shapes #8

Open alexey-malov opened 4 years ago

alexey-malov commented 4 years ago

https://github.com/RomanovAleksandr/oop/blob/625f4dc7f7babbf9140241f6a8fb1ee193baf22f/lab4/Shapes/Shapes/CPoint.h#L4-L14

alexey-malov commented 4 years ago

https://github.com/RomanovAleksandr/oop/blob/625f4dc7f7babbf9140241f6a8fb1ee193baf22f/lab4/Shapes/Shapes/IShape.h#L4-L11

alexey-malov commented 4 years ago

https://github.com/RomanovAleksandr/oop/blob/625f4dc7f7babbf9140241f6a8fb1ee193baf22f/lab4/Shapes/Shapes/CRectangle.h#L5-L26

alexey-malov commented 4 years ago

https://github.com/RomanovAleksandr/oop/blob/625f4dc7f7babbf9140241f6a8fb1ee193baf22f/lab4/Shapes/Shapes/ShapesProcessor.h#L2-L26

alexey-malov commented 4 years ago

https://github.com/RomanovAleksandr/oop/blob/625f4dc7f7babbf9140241f6a8fb1ee193baf22f/lab4/Shapes/Shapes/main.cpp#L6-L13

alexey-malov commented 4 years ago
RomanovAleksandr commented 4 years ago

IShape* triangle = new CTriangle; delete triangle; В таком случае деструктор CTriangle не вызывается Добавил виртуальные деструкторы в IShape и ISolidShape