PwC Interview Question

Differ between class and methods