Comparative Study of the Function Overloading and Function Overriding Using C++
Brijender kahanwal

TL;DR
This paper compares function overloading and function overriding in C++, clarifying their differences, similarities, and how they relate to polymorphism, to aid programmers and learners in understanding these concepts.
Contribution
It provides a clear comparison between function overloading and overriding in C++, highlighting their distinctions and similarities for better understanding.
Findings
Function overloading occurs at compile time.
Function overriding occurs at runtime.
Overloading can happen without inheritance.
Abstract
In the Object-Oriented Programming Systems (OOPS), these two concepts namely function overloading and function overriding are a bit confusing to the programmers. In this article this confusion is tried to be removed. Both of these are the concepts which come under the polymorphism (poly means many and morph mean forms). In the article the comparison is done in between them. For the new programmers and the learners, it is important to understand them. The function overloading [1] is achieved at the time of the compile and the function overriding is achieved at the run time. The function overriding always takes place in inheritance, but the function overloading can also take place without inheritance.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDistributed and Parallel Computing Systems · Software Testing and Debugging Techniques · Parallel Computing and Optimization Techniques
