Darren New wrote:
> You can't accidentally declare the function taking a float in the
> headers and an integer in the body and have mysterious type crashes at
> runtime in spite of your static typing.
C++ won't let you do that, either.
It won't give a compiler error as overriding the function is allowed;
but it WILL give you a linker error, as the correct implementation is
not found anywhere.
--
...Ben Chambers
www.pacificwebguy.com
Post a reply to this message
|