1 | This algorithm also works for the case when the method is overridden |
2 | Class: |
3 | method A |
4 | Definition of method |
5 | is given in parent |
6 | Class: |
7 | Class: |
8 | method A |
9 | Class: |
10 | Class: |
11 | Object2 |
12 | Object1 |
13 | Object1 creates object2 |
14 | and calls object2.A |