Answer:
When Scheme is a pure functional language, it cannot include the function DISPLAY. Since the pure functional languages will return the same value whenever the same expression is evaluated, and the DISPLAY would be the output and thus it cannot be part of the purely functional language. Thus in the pure functional language we can evaluate the expressions with the same arguments and it returns the same value since there is no state to change.
Explanation:
Answer:
A)
This is an example of tight coupling since the class Working has to have an idea of how Person is implemented to complete its own implementation.
B)
Any change in the Person class would require a change in the working class too.
C)
CODE
class Person {
int personID, age;
String fName, middleName, lastName;
public int getAge() {
return age;
}
}
// end of Person class
class Working extends Person {
boolean isUnderEighteen() {
if (super.getAge() <18) {
System.out.println("The person is under age and cannot work");
return true;
}
else {
System.out.println("The person can legitimately work");
return false;
}
}
}
Explanation:
Answer:
easy
Explanation:
............................