123456789101112131415161718 |
- #pragma once
- #include "myShape.h" //÷òîáû êîìïèëÿòîð çíàë ñâîéñòâà áàçîâîãî êëàññà
- #include "myRect.h"
- class Circle :public Shape
- {
- double m_x, m_y;
- double m_radius;
- public:
- void WhereAmI();
- void WhereAmIVirtual();
- Circle(double x = 0, double y = 0, double radius = 0, colour colour = BLACK, bool contour = true, double transparency = 1); //êîíñòðóêòîð
- Circle(const Circle&); //êîíñòðóêòîð êîïèðîâàíèÿ
- Circle(const Rect&); //êîíñòðóêòîð âïèñàííîé îêðóæíîñòè (ìîæíî áûëî ñäåëàòü ìåòîä friend)
- void Inflate(int);
- ~Circle();
- };
|