-
Methods and attribute
Hi,
I wanted to know... I have an attribut for my construtor called :
Code:
util::Date m_openDate;
I do not need to access it anywhere else, only in my class.
So I wanted to know... I don't need to make a method get to get it right?
I can just do something like that :
Code:
this->m_openDate.someMethod()
Thanks
-
if only your class will be accessing it, you can either use it directly, or you can create a private getter and setter. the choice is up to you. you do not need to make public accessors.