Answer: Initializer list or initialization list in constructor in C++ programming is used to initialize data members of a class. Constructor of a class can
Answer: Here is the some of the scenarios where we must use initialization list in C++. Scenario-1: initialization of constant & reference data member of
Answer: Listing here the differences between factory design pattern and Builder design pattern with example and source code. A Factory Design Pattern is used when
Order of execution of constructors and destructors in C++ is frequently asked interview question. For this question, we have to answer c++ constructor call order and
Answer: Order of constructor call for composed objects in a class would be as below. Consider an example of Mobile class, composed of Battery and
Answer: No, in C++, a copy constructor doesn’t support pass by value but pass by reference only. It cannot accept object parameter by value and
Answer: The UML (Unified Modelling Language) Diagram is a standardized modelling language of describing, designing and documenting a software system in object-oriented software engineering. There
Answer: Two main categories of UML diagram are Structural and Behavioural diagrams. These diagrams explain the static and dynamic characteristics of the system. Structural diagram
Answer includes a simple program to overload new and delete operator in C++ class with important points about overloaded new and delete. Below is the
Answer is little bit tricky but simple to how does free know the size of memory to be deleted or deallocated? . Elaborating interview question