not using virtual function still getting desired output without any
error. how ?