Bloomberg LP Interview Question
Software Engineer / DevelopersBefore the body of the constructor is run, all of the constructors for its parent class and then for its fields are invoked. By default, the no-argument constructors are invoked. Initialization lists allow you to choose which constructor is called and what arguments that constructor receives.
If you have a reference or a const field, or if one of the classes used does not have a default constructor, you must use an initialization list.
Initialization List is a better approach for initializing the member variables and base class objects of a class upon construction of an instance of it's own. make your code execute faster as a result. order of initializing the member variables in the Initialization List must match the order of their declarations inside the class. initialization list is the only place that reference and const members can be initialized at all.
can u tell me please what is pkg of bloomberg??
- coder July 30, 2010