Solved Box(): length(0) { } vs Box{ length = 0}
-
what is diff between below line , in context of class context
Box(): length(0) {} VS Box{ length = 0} -
Hi and welcome to devnet,
The former is the members initializer and the other "initialized in the constructor".
More details can be found here
-
Hi and welcome to devnet,
The former is the members initializer and the other "initialized in the constructor".
More details can be found here
-
@SGaist Thanks
-