MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Rational

Method Rational

01.11-compoundRequirement2/main.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39class Rational {
40public:
41 Rational(int numerator = 0, int denominator = 1)
42 : mNumerator(numerator)
43 , mDenominator(denominator)
44 {}
45
46 Rational& operator+(const Rational& rhs) noexcept;
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected