member inialiser

0 Saswat Prusty · June 12, 2014
what is the exact purpose of member initialiser when we can use member function to st the values?

Post a Reply

Replies

Oldest  Newest  Rating
0 Alexander Taylor · June 13, 2014
One example I can give you off the bat is it is the only way (that i am aware of, c++ 11 might have added a change to this) to set the value of a const variable in a class.
  • 1

C++

126,401 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator