Tag Archives: overloading

Polymorphism and Overloading in C++

A reader sent me an interesting question the other day. They¬†asked if polymorphism and overloading were essentially the same thing. My initial reaction was Huh? What are people being taught if they think that these two concepts are the same thing? But a quick google search revealed that yes, many, many people are struggling to […]

Overriding or Overloading in C++?

Occasionally I’ve heard these terms used interchangeably – but they actually refer to two completely separate concepts. So what’s what? Overloading describes the creation of a method with the same name as an existing method, but different parameters. For example: int method(); int method(int); int method(int, double); Overriding describes the creation of a method in […]