Friday, April 23, 2010

Virtual Function with default Arguments

Can Virtual Functin have default Arguments?
Yes they can bu tthere is a catch here
Remember virtual functions are dynamically bound, but default parameters are statically bound .
Thing is for Runtime efficiency default parameter are not dynamically bounded .



OUTPUT:
der default 4  Passed  5
base default 4  Passed 15

2 comments:

Followers