+ 1
Can anyone tell me what ":" this symbol used for
public: // Constructor with member initializer.. MyClass(int h, int d, std::string n, std::string w) : health(h), damage(d), name(n), weapon(w) {}
1 Odpowiedź
+ 5
member initializer list..there is a lesson for this