A constructor that accepts a pair of integers corresponding to the numerator and denominator of the rational number. Thus passing in a numerator of 3 and a denominator of 4 would create an object representing the rational number 3/4.
A constructor that accepts a pair of integers corresponding to the numerator and denominator of the rational number. Thus passing in a numerator of 3 and a denominator of 4 would create an object representing the rational number 3/4.
Do you have a question? Please read our homework policy.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Aww. You're not the sharpest knife in the drawer, are you?
"What's up, Doc?"
"'Up' is a relative concept. It has no intrinsic value."
actually it is my first day in this website i dont really know what kind of help should i expact
Expect the kind of help that you first need to ask for.
For example, the problem could be that you don't know what a rational number is. In which case you would say: "This paragraph talks about something called a 'rational number'. What is that?"/ To which we would probably tell you to "STFW!".
That's probably not your actual question. So, what is your actual question...?
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010