NTT DATA interview question

Explain object oriented programming. Variable scopes.