How method sets are working

I want to know internal workings