Deloitte interview question

Write a code for method overloading from child component and call the method in parent component