[Insight-developers] When are variables made private vs protected?
David Doria
daviddoria at gmail.com
Fri Dec 2 14:00:45 EST 2011
I am curious how the decision to make member variables private vs
protected is made. For example, I was trying to derive from
itkMedianImageFunction and I noticed that the member:
unsigned int m_NeighborhoodRadius;
is private. Therefore, in my subclass, I have to create a new
member+accessor+mutator for the same purpose. Why would all members in
ITK not be protected so that they can be more easily subclassed?
Thanks,
David
More information about the Insight-developers
mailing list