Constructors etc.

Explicit Constructors

An example
#include <iostream.h>
class Rational {
public:

Rational(int = 0, int = 1); //constructor
Rational(long); //overloaded
Rational Add (const Rational &r);
Rational Multiply (const Rational &r);
void SetNumerator(int number);
void SetDenominator(int denom);
private:
int NumeratorValue;
int DenominatorValue;
};
void main()
{
Rational r (7.5), s (3, 4);
}