+ 1
Why are default values for constructors added in the header file and not the implementation file??
suppose I have two private member variables and I always want them to be initialized to 1 and 2 respectively through a defaul parameter constructor . doesnt this mean that if the default values are specified in the header file, the user can change them as they please?
2 ответов
0
at which language are you refering to?
0
c++