Cisco interview question

Polymorphism and OOPS, also code of oops was asked to write..