programm in c and cpp
2 pe (ii) Write the following functions that create a RationalC: . Rational create rational(): Initialises the fraction with • Rational create rational (int n): Initialises the fraction with 다. Rational create rational(int n, int d): Initialises the fraction with . 2 pol . ii) Write a class RationalCpp that contains numerator and denominator as private attributes. RationalCpp should have three public constructors (similarly to : • RationalCpp(): Initialises the fraction with RationalCpp(int n): Initialises the fraction with • RationalCpp(int n, int d): Initialises the fraction with Moreover, RationalCpp should have public methods that allow reading and setting the nume ator and denominator. Reading the numerator or denominator of constant objects should be possible.
2 pe (ii) Write the following functions that create a RationalC: . Rational create rational(): Initialises the fraction
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
2 pe (ii) Write the following functions that create a RationalC: . Rational create rational(): Initialises the fraction
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!