Java overloading and overriding

后端 未结 9 1622
暖寄归人
暖寄归人 2020-11-29 08:16

We always say that method overloading is static polymorphism and overriding is runtime polymorphism. What exactly do we mean by static here? Is the call to a method resolved

9条回答
  •  Happy的楠姐
    2020-11-29 08:49

    Property Over-loading Overriding

    Method Names -------------->must be Same----------------must be same

    Arg Types------------------>must be Different(at least arg)

    Method Signature

    Return Type

    Private,Static,Final

    Access Modifier

    try/Catch

    Method Resolution

提交回复
热议问题