Cisco Interview Question

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