Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Inheritance and Polymorphism > Overloading, Hiding, and Overriding

6.5. Overloading, Hiding, and Overriding

First, recall the definitions of two terms that often get confused:

  • When two or more versions of a function foo exist in the same scope (with different signatures), we say that foo has been overloaded.

  • When a virtual function from the base class also exists in the derived class, with the same signature and return type, we say that the derived version overrides the base class version.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial