This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java:hiding_static_methods [2015/03/01 19:22] gthanos |
java:hiding_static_methods [2015/04/20 06:50] gthanos |
||
---|---|---|---|
Line 43: | Line 43: | ||
System.out.println(""); | System.out.println(""); | ||
| | ||
- | myCat.testInstanceMethod(); | ||
myAnimalCat.testInstanceMethod(); | myAnimalCat.testInstanceMethod(); | ||
myAnimal.testInstanceMethod(); | myAnimal.testInstanceMethod(); | ||
+ | myCat.testInstanceMethod(); | ||
} | } | ||
} | } | ||
Line 60: | Line 60: | ||
The static method in Cat | The static method in Cat | ||
- | The instance method in Cat | ||
The instance method in Cat | The instance method in Cat | ||
The instance method in Animal | The instance method in Animal | ||
+ | The instance method in Cat | ||
+ | |||
</code> | </code> | ||