1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex2.3/namespacing.txt

12 lines
285 B
Plaintext

a)
the `print(5)` line calls White::print
the `print(k-1)` line calls itself
b)
the line is allowed by itself,
however since we define a `void print(int k)` function
there is no way to distinguish which one is called.
thus it becomes illegal.
Including it in main would be OK