Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Forma::Forma(int nD, std::string n) : dimensoes(nD), nome(n) {}
  2.  
  3. int Forma::nDimensoes()
  4. {
  5. return dimensoes;
  6. }
  7. std::string Forma::nomeForma()
  8. {
  9. return nome;
  10. }
  11.  
  12. class Forma {
  13. public:
  14. Forma(int nD = 0, std::string n = "Forma");
  15. virtual ~Forma();
  16. int nDimensoes();
  17. std::string nomeForma();
  18.  
  19. virtual float perimetro() = 0;
  20. virtual float area() = 0;
  21. virtual float volume () = 0;
  22.  
  23. private:
  24. int dimensoes;
  25. std::string nome;
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement