Denton Woods

Science, Coding, and Some Hobbies

C++ Encapsulation

I found discussion of Scott Meyers’s “algorithm” for determining whether to make a function a member or non-member of a C++ class on Embedded Artistry. Unfortunately, the original Dr. Dobbs article is no longer available. I made a flowchart of this algorithm to give a quick visual description of where a function should be located.

There are .svg and large .png versions of this: