Amdocs interview question

Basic OOPs concept