Srxon05

Pravougaonik.hpp

Jan 31st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #ifndef PRAVOUGAONIK_HPP_INCLUDED
  2. #define PRAVOUGAONIK_HPP_INCLUDED
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. class Pravougaonik{
  8. protected:
  9.     double a, b;
  10. public:
  11.     double geta();
  12.  
  13.     double getb();
  14.     virtual void seta(double a1);
  15.     virtual void setb(double b1);
  16.     double getP();
  17.     double getO();
  18.     Pravougaonik();
  19. Pravougaonik(double a2, double b2);
  20. Pravougaonik(const Pravougaonik& p);
  21. };
  22.  
  23.  
  24. #endif // PRAVOUGAONIK_HPP_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment