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
Author: rsingh
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: 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: Order of constructor call for composed objects in a class would be as below. Consider an example of Mobile class, composed of Battery and
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: Listing here the differences between factory design pattern and Builder design pattern with example and source code. A Factory Design Pattern is used when
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: Initializer list or initialization list in constructor in C++ programming is used to initialize data members of a class. Constructor of a class can
Before listing the difference between pointer and reference in C++ , lets see the definition of pointer and reference. Pointer: A pointer is a simply
C++ program to swap two numbers using pointers and references and functions. Swapping two number using pointers concept is applicable to both C and C++.