The friend keyword in C++ is one of those concepts that is formally taught, but then seems to disappear off the scene once you get into the real world. Maybe friends are less common in embedded programming (ha ha), but I’ve seen very few of them over the years. The thing is, they just don’t seem to […]
Category Archives: OO Programming
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 […]
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.
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 […]