Python Type Hints Runtime Polymorphism Example In Java