DXC Technology interview question

Method overloading(examples with code)