randykaur

ret.h

Mar 12th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. #ifndef RETANGULO_H
  6. #define RETANGULO_H
  7.  
  8. class Retangulo
  9. {
  10. private:
  11. int largura, comprimento;
  12. public:
  13. Retangulo();
  14. Retangulo(int c, int l);
  15. ~Retangulo(){
  16. cout << endl;
  17. cout << "Destroyed obj" << endl;
  18. }
  19. int getLarg();
  20. int getComp();
  21. void setLarg(int l);
  22. void setComp(int c);
  23. bool is_valid(int c, int l);
  24.  
  25. int area();
  26. int perimetro();
  27. void isQuad();
  28. void matrix(char borda[], char preenchimento[]);
  29.  
  30. void leitura();
  31. void imprime();
  32.  
  33. };
  34.  
  35.  
  36. #endif
Add Comment
Please, Sign In to add comment