Tag Archives: object oriented programming

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 […]

Download the 10 Minute Guide To Object Oriented Programming

I wrote some posts a while back on the principles of object oriented programming and have collated them into this 10 minute guide as a PDF file that you can download. It covers the main concepts of OOP and also has a simple example of polymorphism in C++. Get your copy here.  

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 […]

What is Encapsulation?

This is the final post in the series of the three cornerstones of object oriented programming. Next week I’m going back to a nice low-level subject – the bitwise operators :-). So. What is encapsulation? I previously defined this as the¬†ability of objects* to maintain their internal workings independently from the program they are used […]