Suppose I have a base class with a virtual function that simply returns 140.
Now suppose I have a derived class, that extends the base class. Here, I make the virtual function return 230.
Suppose this fucntion is named ret_int().
Now, if I have a function that accepts a pointer to the Base class
that calls the ret_int() function.Code:function(Base * b)
if I pass in a pointer to derived, will it return 140, or 230?