PCAP Object-Oriented Programming • Set 6
PCAP Object-Oriented Programming Practice Test 6 — 15 questions with explanations. Free, no signup.
Refer to the exhibit. Which of the following is true about MyClass?
>>> help(MyClass) Help on class MyClass in module __main__: class MyClass(builtins.object) | Methods defined here: | | __init__(self, value) | Initialize self. See help(type(self)) for accurate signature. | | display(self) | Print the value. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined)