Summary
Team LiB
Previous Section Next Section

Summary

They're none of your caller's business: Keep data members private. Only in the case of simple C-style struct types that aggregate a bunch of values but don't pretend to encapsulate or provide behavior, make all data members public. Avoid mixes of public and nonpublic data, which almost always signal a muddled design.

    Team LiB
    Previous Section Next Section