Cognizant interview question

OPPs Global variable local variable inheritance