Infosys interview question

Write code for method overriding and overloading.