A curated list of good to know Python Snippets. Visit
Advertise with us
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.
Please subscribe to get the latest articles in your mailbox.
Get a .COM for just $5.98!
© 2021-2022 Python Circle