Python Multiple Choice Questions
Which of the following statements isn't true?
A. A non-private method in a superclass can be overridden
B. A derived class is a subset of superclass
C. The value of a private variable in the superclass can be changed in the subclass
D. When invoking the constructor from a subclass, the constructor of superclass is automatically invoked
Explanation: If the value of a private variable in a superclass is changed in the subclass, the change isn't reflected.
© 2022-2023 Python Circle