subject

Consider a rational class designed to represent rational numbers as a pair of ints, along with methods reduce (to reduce the rational to simplest form), gcd (to find the greatest common divisor of two ints), as well as methods for addition, subtraction, multiplication, and division. why should the reduce and gcd methods be declared to be private?

a. because they will never be used
b. because they will only be called from methods inside rational
c. because they will only be called from the constructor of rational
d. because they do not use any of the rationalinstance data
e. this is incorrect; they should be declared as public

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:40
Most networking media send data using in which data is represented by only two discrete states: 0s and 1s. a. digital signals b. contiguous signals c. ramp signals d. exponential signals
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
question
Computers and Technology, 25.06.2019 07:10
When you “listen” to evaluate an online message, which question should you ask?
Answers: 1
question
Computers and Technology, 25.06.2019 11:30
Sophie is using context clues with her new reading assignments. what results should she expect to see? check all that apply. increased reading speed better memorization skills better ability to take tests increased word recall more reading enjoyment
Answers: 2
You know the right answer?
Consider a rational class designed to represent rational numbers as a pair of ints, along with metho...
Questions
question
Mathematics, 12.01.2021 02:40
question
English, 12.01.2021 02:40
question
Chemistry, 12.01.2021 02:40
question
English, 12.01.2021 02:40
question
Mathematics, 12.01.2021 02:40
question
SAT, 12.01.2021 02:40
Questions on the website: 13722363