Skip to main content

Command Palette

Search for a command to run...

The Three Hierarchies of C++

Updated
1 min read

Lest anyone ever tell you programming isn't complicated, it occurred to me that a C++ program has three interlocking, but independent hierarchies.

  • Namespace: The name of the function, within its parent namespace and/or the class that owns it.

  • Call Stack: The parent is the calling function, the child is the callee.

  • Inheritance: The class/struct is a child of the base class.

Could we stand to lose one or two of these?

More from this blog

Roderick's Debug Diary

58 posts

https://mastodon.social/@rvkennedy