C++/What kind of variables and functions should be public, or private?
Hi, Merry Christmas!
What kind of variables and functions should be public, or private?
functions that could be used as API (user use them) should be public while the functions that deal with intricate details should be private.
Almost all variables should be private unless and until some very special need arises.