State Street interview question

Tell me how to use virtual class using hash maps