QuestionQ87

VerifiedObject-Oriented Programming

Assuming the following code has executed successfully, which expressions evaluate to True?

Question Image

Choose two
Explanation

var is a class attribute and is therefore present in Class.__dict__. The instance Object receives prop during initialization, so its instance dictionary contains exactly that one attribute.

Community Discussion

No comments yet. Be the first to start the discussion!