Amdocs interview question

Basic oop concepts.