home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH14 / A14122.TXT < prev    next >
Encoding:
Text File  |  1993-10-21  |  594 b   |  11 lines

  1. When a function has the same name as another function in the same
  2. scope, it overloads that function.  The compiler uses the types
  3. and number of arguments to distinguish between different versions
  4. of an overloaded function.  The signatures of overloaded functions
  5. must be distinct.  Overriding, on the other hand, occurs when a
  6. function in a derived class has the same name as a function in a
  7. base class.  The base class and derived class functions do not
  8. need to have distinct signatures.  In fact, they must have
  9. identical signatures or the virtual function mechanism will not
  10. work.
  11.