تفاوت Method Overloading و Method Overriding در جاوا

  • method overloading is creating more than one method with same name but different signature. It is used to achieve static poly morphisim.
  • method overriding is writing more than one method with same name and same signature in super class and sub class to acheive dynamic polymorophisim.


نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد