Shaikh Sonny Aman’s Blog

previously www.mailtoaman.com

C++ Member initialization

Many of us may not know that member variables of a class object is initialized before the body of the constructor is executed! The class type members are initialized with the default constructor i.e. constructor with no arguments. Primitive type member variable like int, float etc does not have any constructors, so [...]

« go back