Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 05-Practice-29.03.2022 / ex2-Rational.h
diff options
context:
space:
mode:
1 files changed, 0 insertions, 24 deletions
-rw-r--r--Year 1/Object-oriented Programming/05-Practice-29.03.2022/ex2-Rational.h24
diff --git a/Year 1/Object-oriented Programming/05-Practice-29.03.2022/ex2-Rational.h b/Year 1/Object-oriented Programming/05-Practice-29.03.2022/ex2-Rational.h
deleted file mode 100644
index f95e520..0000000
--- a/Year 1/Object-oriented Programming/05-Practice-29.03.2022/ex2-Rational.h
+++ /dev/null
@@ -1,24 +0,0 @@
-class Rational {
- int numerator;
- int denumerator;
-
-public:
- Rational(int numerator, int denumerator);
-
- int get_numerator() const;
- void set_numerator(int numerator);
-
- int get_denumerator() const;
- void set_denumerator(int denumerator);
-
- void canonize();
-
- Rational operator+(const Rational& other);
- Rational operator-(const Rational& other);
- Rational operator*(const Rational& other);
- Rational operator/(const Rational& other);
-
- int numcmp(const Rational& arg) const;
-
- void print() const;
-};