function overriding

This is a discussion on function overriding within the C++ Programming forums, part of the General Programming Boards category; can any body please explain me the concept of function overriding in C++????...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    14

    Unhappy function overriding

    can any body please explain me the concept of function overriding in C++????

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,629
    If a class inherits a function from a base class, and then defines a function with the same name, argument types, and return value, that class is said to be overriding the inherited function.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  3. Troubleshooting Input Function
    By SiliconHobo in forum C Programming
    Replies: 14
    Last Post: 12-05-2007, 07:18 AM
  4. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 07:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21