Question d’entretien chez UST

asked to write a code for method overloading in c++.