Mobifly (India) interview question

Oops Concept Abstraction Encapsulation type of polymorphism code on if else condition.