Question 26
What is the output of the following code?
Hint
The Quote class contains 2 class members (or attributes/properties; will use these terms interchangably, refer here for more).
Form their respective values with the parameters passed into the constructor.
Solution
teacher is initialized as an object of class Quote with the following class members:
self.name:name = 'Alan'self.say:name + ': ' + quote = 'Alan: Code, pray, love'
When any of these attributes are called (e.g., teacher.say), they will now return their respective values accordingly.