From 0fa3378234bf4796677f7dcca6488c7a16632c17 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Tue, 24 Sep 2019 00:14:03 +0300 Subject: Add files via upload --- Polymorphism/MathExpression/Num.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Polymorphism/MathExpression/Num.hpp') diff --git a/Polymorphism/MathExpression/Num.hpp b/Polymorphism/MathExpression/Num.hpp index d2da4ae..91e1492 100644 --- a/Polymorphism/MathExpression/Num.hpp +++ b/Polymorphism/MathExpression/Num.hpp @@ -1,3 +1,5 @@ +#pragma once + #include "Expression.hpp" class Num : public Expression { @@ -16,6 +18,9 @@ public: { return number; } - + int getNum() + { + return number; + } }; \ No newline at end of file -- cgit v1.3.1-23-gd82d