UST interview question

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