OA. free
Free
Mercedes-Benz Core Computer Science Core Computer Science Medium

QUESTION 28 Which of the given below statement(s) is/are correct?

Mercedes-Benz technical mcq question, verified with a worked answer. Free to practise - no sign-up.

QUESTION 28

Which of the given below statement(s) is/are correct?

I) A super class reference can refer to a sub class object.

II) If reference is super class and object is of sub class then calling an instance method on it will result in execution of the method defined in sub class.

Choose one option.
Show answer & explanation
Answer: A. A) Both (I) and (II)

Accurate technical and quantitative evaluation based on foundational principles.

Step-by-step Derivation:
Step 1: Formulate problem conditions.
Step 2: Apply logical deduction.
Step 3: Conclude correct option.