Wipro interview question

Switching Methods, how does it work?