NTT DATA Interview Question

Explain object oriented programming. Variable scopes.