Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef KVADRAT_HPP_INCLUDED
- #define KVADRAT_HPP_INCLUDED
- #include <iostream>
- #include "pravougaonik.hpp"
- using namespace std;
- class Kvadrat : public Pravougaonik{
- public:
- Kvadrat(){a=1;
- b=1;}
- Kvadrat(double c1):Pravougaonik(c1,c1){};
- Kvadrat(const Kvadrat &k1):Pravougaonik((Pravougaonik)k1){};
- void seta(double c1){
- a=c1;
- b=c1;}
- void setb(double b1){
- a=b1;
- b=b1;}
- };
- #endif // KVADRAT_HPP_INCLUDED
Add Comment
Please, Sign In to add comment