Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Forma::Forma(int nD, std::string n) : dimensoes(nD), nome(n) {}
- int Forma::nDimensoes()
- {
- return dimensoes;
- }
- std::string Forma::nomeForma()
- {
- return nome;
- }
- class Forma {
- public:
- Forma(int nD = 0, std::string n = "Forma");
- virtual ~Forma();
- int nDimensoes();
- std::string nomeForma();
- virtual float perimetro() = 0;
- virtual float area() = 0;
- virtual float volume () = 0;
- private:
- int dimensoes;
- std::string nome;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement