
- Forum
- Programming Talk
- C and C++
- overload virtual function
overload virtual function
This is a discussion on overload virtual function within the C and C++ forums, part of the Programming Talk category; Can we have overload a function which is virtual? Thanks...
-
03-01-2010, 05:46 AM #1
- Join Date
- Mar 2010
- Answers
- 4
overload virtual function
Can we have overload a function which is virtual?
Thanks
-
You can overload virtual functions, but it's not a recommended practice. I tried it out with both GCC and MSVC++ 2003, and neither gave me an error or warning....

-
02-28-2012, 07:46 AM #3
- Join Date
- Feb 2012
- Answers
- 66
We can't overload (or at least, you can't reliably overload) a virtual function in C++. Some compilers support it whereas others don't.
-
Sponsored Ads

Reply With Quote





