Infosys interview question

Objects, classes, constructors, loops, etc