Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- using namespace std;
- class Triangle
- {
- protected:
- double x, y;
- public: Triangle(double ix = 0, double iy = 0) { x = ix, y = iy; }
- virtual ~Triangle() { cout << "Deleting Triangle..." << endl; }
- virtual void area() = 0;
- virtual void obwod() = 0;
- virtual void print() = 0;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement