add file extends_with_virtual.cpp

inheritant with virtual extension