Java overloading vs overriding

后端 未结 3 897
鱼传尺愫
鱼传尺愫 2020-12-05 08:11

Hi I just want to make sure I have these concepts right. Overloading in java means that you can have a constructor or a method with different number of arguments or differe

3条回答
  •  囚心锁ツ
    2020-12-05 08:54

    what you have described is correct.

    For more clarification take a look at polymorphism concept. The Wikipedia has a good article

    http://en.wikipedia.org/wiki/Polymorphism#Computing

    http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

提交回复
热议问题