test code:virtual method