Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

answer the three following question 1) Which of the following is likely to not b

ID: 3861646 • Letter: A

Question

answer the three following question

1) Which of the following is likely to not be an object found during OO Analysis?

a. The trigonometric cosine function in a video game application.

b. A molecule in a chemistry application.

c. A book in a library application.

d. A landing of an airplane in an air traffic control application

2)If an operation is defined for a super class, which one of the following statements is true?


a.If the method is not overridden by a subclass, you may not invoke it on any object instances of that subclass.

b.All subclasses must override the operation.

c.The operation may not be redefined (overridden) in a subclass. All subclasses inherit the behavior from their super class.

d.Some subclasses may override the operation and some may not.

3) The ability to send the same message to a number of object instances of different classes and have different behaviors executed, is referred to as what?

a.Polymorphism

b.Homomorphism

c.Anthropomorphism?

d.Isomorphism

Explanation / Answer

2)If an operation is defined for a super class, which one of the following statements is true?

sol:

a.If the method is not overridden by a subclass, you may not invoke it on any object instances of that subclass.
explanation:we can invoke the super class method from the sub class using dynamic method dispatch
b.All subclasses must override the operation.
explanation : it is wrong there is need not to override the function
c.The operation may not be redefined (overridden) in a subclass. All subclasses inherit the behavior from their super class.
explanantion:no there may be a need to override the function according to user requirement.
d.Some subclasses may override the operation and some may not.

3) The ability to send the same message to a number of object instances of different classes and have different behaviors executed, is referred to as what?

a.Polymorphism