Answer:
There is not a reason for the two methods to be private unless you want to only allow objects of the class Rational to have access to these methods. Perhaps your professor has a particular reason for requiring it to be set up as such.
Explanation:
The use of the private space simply restricts access to either variables or methods contained within the space to the class object that is associated with the variable or methods.
The use of the public space allows the method or variable to be accessed from anywhere within the program.
Note, if using class inheritance, classes that inherit from the Rational class will not be able to access the private functions.
D because integration means that u are almost weaving it into something else so an excel chart into a power point is weaving them together
Answer:
A generalized class used only to create related derived classes
Explanation:
An abstract class is a class which cannot be instantiated on its own. It is defined using an abstract keyword. However, an abstract class can be inherited from and the derived class can actually be instantiated. For example:
abstract class A{
}
class B extends A{
void test(){
}
}
Here class A is an abstract class, while class B inherits from A. Now we can create an instance of class B as follows:
B b = new B();
b.test();
ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok