Posts Tagged ‘inheritance’

UML cheatsheet

Every once in awhile, I have to draw a UML diagram. I rarely do serious designs with UML, however sometimes I do need to depict some piece of code in a diagram and UML seems to be the best notation around. Unfortunately, various sources of information on UML tend to over-complicate things. I am not software architect […]

How inheritance, encapsulation and polymorphism work in C++

Table of contents Introduction Encapsulation How methods work How overloading works How mangling solves the problem Structure and size of the object How inheritance and polymorphism work How basic polymorphism works How multiple inheritance works Difference between different casting types Polymorphism and multiple inheritance What if we try something even more complicated Few words about […]