myCircle.h 535 B

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