Hello,
With this piece of code the c++ builder compiler correctly emits the warning:
[BCC32 Warning] Unit1.cpp(23): W8022 'Derived::Overload(float)' hides virtual function 'Base::Overload(int)'
code:
struct Base
{
virtual void Overload(int) { Form1->Memo1->Lines->Add("Base::int"); }
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.