Exforsys
+ Reply to Thread
Results 1 to 3 of 3

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...

  1. #1
    narendra.b is offline Junior Member Array
    Join Date
    Mar 2010
    Answers
    4

    overload virtual function

    Can we have overload a function which is virtual?

    Thanks


  2. #2
    moonlight is offline Banned Array
    Join Date
    Jul 2008
    Answers
    27
    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....


  3. #3
    Sandhya.Kishannag is offline Member Array
    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



Latest Article

Network Security Risk Assessment and Measurement

Read More...