Synopsys interview question

Implement Virtual function in C++.