Use overloading in C# and Java