Lesson 20 of 34
Method Overloading
7 min 30 XP
Parameters-এর সংখ্যা বা type আলাদা হলে একাধিক method একই নাম নিতে পারে। Java call দেখে সঠিকটি বেছে নেয়। একে compile-time polymorphism বলে, interview-এর একটি ক্লাসিক শব্দ।
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.শুধু return type বদলানো overloading নয়; এটি compile error।