-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
19/20 Sem 2 Q1 - Polymorphism #550
Comments
Hi Anli, I think you can refer to this post for some inspiration! #544 |
b.foo(ab) refers to the method in class B, which takes in a A object |
Hi @ZhangAnli, b.foo(ab) means that you are calling the method with the input of Type A in Class B -> Printing of 3 Below is my code for reference :)
|
Look recitation 02 question1. There's also supplementary materials from that recitations for more explanations. |
I think this is a general framework for these type of questions, e.g.
|
Description
Hi can anyone explain why the question below has an answer of "1534"? I thought type checking happens during runtime and therefore had an answer "1555". :(
Topic:
Finals
Screenshots (if any):
The text was updated successfully, but these errors were encountered: