1.

At runtime, code can’t change a/an ___________ hierarchy.(a) Encapsulation(b) Polymorphism(c) Overloading(d) InheritenceI got this question during a job interview.My enquiry is from JMock in section Testing with Mock Objects of JUnit

Answer»

Correct OPTION is (d) Inheritence

The explanation: As CODE cannot change the hierarchy, objects NEEDS to be composed DIFFERENTLY.



Discussion

No Comment Found

Related InterviewSolutions