Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 12 / Example_polymorphism / Shape.h
diff options
context:
space:
mode:
1 files changed, 2 insertions, 0 deletions
-rw-r--r--Sem. 12/Example_polymorphism/Shape.h2
diff --git a/Sem. 12/Example_polymorphism/Shape.h b/Sem. 12/Example_polymorphism/Shape.h
index 62f5c41..6e189d7 100644
--- a/Sem. 12/Example_polymorphism/Shape.h
+++ b/Sem. 12/Example_polymorphism/Shape.h
@@ -38,4 +38,6 @@ public:
virtual double getArea() const = 0; //pure virtual
virtual double getPer() const = 0; // pure virtual
+ virtual bool isPointIn(int x, int y) const = 0;
+
}; \ No newline at end of file