Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #pragma once
  2. #include <iostream>
  3. using namespace std;
  4. class Triangle
  5. {
  6. protected:
  7. double x, y;
  8. public: Triangle(double ix = 0, double iy = 0) { x = ix, y = iy; }
  9. virtual ~Triangle() { cout << "Deleting Triangle..." << endl; }
  10. virtual void area() = 0;
  11. virtual void obwod() = 0;
  12. virtual void print() = 0;
  13.  
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement