Questions tagged «overloading»

23
ජාවා පෙරනිමි පරාමිති අගයන්ට සහය දක්වයිද?
පහත දැක්වෙන ව්‍යුහය සහිත ජාවා කේත කිහිපයක් මට හමු විය: public MyParameterizedFunction(String param1, int param2) { this(param1, param2, false); } public MyParameterizedFunction(String param1, int param2, boolean param3) { //use all three parameters here } C ++ හි මට පෙරනිමි අගයක් පැවරිය හැකි බව මම දනිමි. උදාහරණයක් වශයෙන්: void MyParameterizedFunction(String param1, …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.