should class member initialization lists in C ++ be completed? or can they just initialize one or two of the given element in the class?
early!
They do not have to be complete. You can leave the base classes and POD types , which are constructive by default, POD types, however, remain uninitialized.Obviously, persistent members and links must be initialized in the member initialization list.
inthas a constructor, see the Stroustrup section. C ++ programming language. 6.2.8.
int
int j = int();
j 0 ( 0 , , int() 0. , .
, - , , ( ).
, , , . getcha - , float .., , undefined.
Source: https://habr.com/ru/post/1756086/More articles:MySQL uniqueness in several fields - mysqlForm Validation - jqueryFinding the length of a common prefix in two bytes - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1756084/facebook-access-tokens-do-not-work-or-i-need-something-else&usg=ALkJrhjUsdzBaVFn0p05h_pVZe14Pr-70gJQuery lavalamp: selecting focus / selection of an object within lavalamp when clicking hyperlinks outside of lavamalma - jqueryTransaction Type Security - designClass inheritance and polymorphism - drawing simple forms - polymorphismCSS only dropdown menu - htmlWhere to apply: hover over to save css submenu in hover state - htmlManaging multiple azure bursts - azureAll Articles