If A is a superclass, B is a subclass of A, and C is a subclass of B, in what…
PYQ RPSC Programmer 2024Modified — slightly modified from the official paper; see the solution
If A is a superclass, B is a subclass of A, and C is a subclass of B, in what order are the constructors of these classes called? (Assume the standard automatic superclass-constructor invocation used in mainstream OOP languages such as C++, Java, and C#.)
- A.
A, C, B
- B.
A, B, C
- C.
C, A, B
- D.
C, B, A
- E.
Question not attempted
Attempted by 592 students.
Sign up free to check your answer
Sign up freeLoading lesson…

