L
lovecreatesbeauty
Hello.
I often heard that four C++'s special members: default constructor,
destructor, copy constructor & assignment operator should be provided
for a class.
But in your real C++ project coding, when write a (general) class in
C++, which member functions will always be provided naturally by you in
your practice projects coding?
And does these "must" member functions selection procedure often called
class design?
(Sorry, I already post this topic at comp.lang.c++.moderated, but I'm
afraid that this naive and simple question won't be released by
moderator. I really desire your knowledge and experience on it, your
help will be appreciated and thanked greatly.)
Sincerely
lovecreatesbeauty
I often heard that four C++'s special members: default constructor,
destructor, copy constructor & assignment operator should be provided
for a class.
But in your real C++ project coding, when write a (general) class in
C++, which member functions will always be provided naturally by you in
your practice projects coding?
And does these "must" member functions selection procedure often called
class design?
(Sorry, I already post this topic at comp.lang.c++.moderated, but I'm
afraid that this naive and simple question won't be released by
moderator. I really desire your knowledge and experience on it, your
help will be appreciated and thanked greatly.)
Sincerely
lovecreatesbeauty