Allscripts Interview Question

Technical questions simple on your domain. If u have c and cpp background then on inheritance polymorphism virtual function why we use it.