Rjasoft

Rjasoft

Share

ICT training available here.

16/10/2025

Method Overloading (মেথড ওভারলোডিং) হলো একই ক্লাসের মধ্যে একই নামের একাধিক মেথড তৈরি করা, কিন্তু তাদের প্যারামিটারের সংখ্যা, ধরন (type), বা ক্রম (order) আলাদা থাকে।

👉 সহজভাবে বললে —
একই নামের মেথড বারবার ব্যবহার করা যায়, যদি তাদের প্যারামিটার ভিন্ন হয়।

🔹 উদাহরণ (Java):
class MathOperation {
// প্রথম মেথড - দুইটা সংখ্যা যোগ করে
int add(int a, int b) {
return a + b;
}

// দ্বিতীয় মেথড - তিনটা সংখ্যা যোগ করে
int add(int a, int b, int c) {
return a + b + c;
}

// তৃতীয় মেথড - দশমিক সংখ্যা যোগ করে
double add(double a, double b) {
return a + b;
}
}

public class Main {
public static void main(String[] args) {
MathOperation math = new MathOperation();
System.out.println(math.add(10, 20)); // প্রথম মেথড কল হবে
System.out.println(math.add(10, 20, 30)); // দ্বিতীয় মেথড কল হবে
System.out.println(math.add(5.5, 2.3)); // তৃতীয় মেথড কল হবে
}
}

🔸 বাংলা ব্যাখ্যা:

উপরের উদাহরণে add() নামের ৩টি মেথড আছে, কিন্তু তাদের প্যারামিটার আলাদা।
কম্পাইলার দেখে কোন add() মেথডটি কল করতে হবে তা প্যারামিটারের সংখ্যা ও ধরন অনুযায়ী ঠিক করে।

🔸 মনে রাখতে হবে :

মেথড ওভারলোডিং Compile Time Polymorphism (বা Static Polymorphism) এর একটি উদাহরণ।

মেথডের রিটার্ন টাইপ (return type) আলাদা হলে ওভারলোডিং হয় না — প্যারামিটারের ভিন্নতা থাকতে হয়।

Top-Rated Software Development Company - Intelivita 04/01/2024

https://www.intelivita.com/

Top-Rated Software Development Company - Intelivita Intelivita: A custom software development company crafting scalable software solutions with AI, Blockchain, and Web3 technologies.

19/09/2022

Searching some one for group study about laravel.

23/10/2018

function deletedata(id, rid) {
var delete_data = $(".delete_data").attr("id");
//console.log(delete_data);
$.ajax({
type: "post",
url: "process.php",
dataType: "html",
data: {delete_id: rid},
success: function (response) {
document.getElementById("success").innerHTML = response;

}
});
}




function update(id, rid) {
var value = $(id).html();
console.log(rid);
console.log(value);
$.ajax({
type: "post",
url: "process.php",
data: {
fname: value,
rid: rid,
},
success: function (response) {
document.getElementById("success").innerHTML = response;
}
});
}




$(' -submit').on('submit', function (e) {
e.preventDefault();
var data = $(" -submit").serialize();
$.ajax({
data: data,
type: "post",
url: "process.php",
success: function (response) {
document.getElementById("success").innerHTML = response;
}
});
});




function mytest() {
$.ajax({
type: "get",
url: "process.php",
dataType: "html",
success: function (response) {
document.getElementById("success").innerHTML = response;
}
});
}

ajax.googleapis.com /*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(...

Base & height triangle by c programming/এিভুজের ক্ষেত্রফল(ভূমি ও উচ্চতার ক্ষেত্রে) 27/07/2017

https://www.youtube.com/watch?v=QmGx6_Uf9Ak

Base & height triangle by c programming/এিভুজের ক্ষেত্রফল(ভূমি ও উচ্চতার ক্ষেত্রে) Base & height triangle by c programming/এিভুজের ক্ষেত্রফল নিণয়ের সি প্রোগ্রাম(ভূমি ও উচ্চতার ক্ষেত্রে)

Want your public figure to be the top-listed Public Figure in Dhaka?
Click here to claim your Sponsored Listing.

Category

Telephone

Address

Dhaka