Isinstance Int Python Method Overriding Example Java