Could someone explain the difference between Overloading, Redefining, and Overriding functions?
A nutshell answer will work fine; I just need something to stick in my brain for tomorrow's test. I know the concepts behind these tools, but I just need a simple way of defining the difference between them.
Duki
552
Nearly a Posting Virtuoso
Recommended Answers
Jump to PostAn overloaded function is a function that shares its name with one or more other functions, but which has a different parameter list. The compiler chooses which function is desired based upon the arguments used.
An overridden function is a method in a descendant class that has a different …
Jump to PostThe overhead isn't so great as everybody goes on and on about. However, you should only make virtual those functions which need to be virtual. Typically only public and some protected methods are virtual, while private and some protected methods are static.
All 6 Replies
Duoas
1,025
Postaholic
Featured Poster
Duki
commented:
Well said. Really helped me to put concepts into words. Thanks!
+4
Duki
552
Nearly a Posting Virtuoso
Duoas
1,025
Postaholic
Featured Poster
Duki
552
Nearly a Posting Virtuoso
Duoas
1,025
Postaholic
Featured Poster
Duki
552
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.