Copy constructor cannot be used – When an object of the class is returned by value. When an object of the class is passed by values as an argument. When …Read More »
What is this pointer? Provide necessary usage of THIS pointer.
What is this pointer? Provide necessary USAGE of THIS pointer. In C++, this is a keyword that refers to the current instance of the class. There can be 3 usages …Read More »
Define exceptions in C++. Discuss the general exception handling mechanism in C++
Exception handling in C++ is a process to handle run time errors, we perform exception handling so the normal flow of the application can be maintained even after run time …Read More »
Define STL. Briefly explain component of STL
STL(Structured Template Library): STL is a set of C++ template classes that provided common data structure and functions like lists, stack, arrays etc. STL has 3 components – Container Algorithm …Read More »
Briefly explain stream class and pointer and define template
Briefly explain stream class and pointer Stream class: The C++ I/O system contains a hierarchy of classes that are used to define various streams to deal with both disk file …Read More »
Difference between concrete class and abstract class
Difference between concrete class and abstract class Concrete class Abstract class It is used to create object. It cannot be used to create object.Read More »
Define Abstract class and Rules of using constructor in inheritance.
Define Abstract class Abstract class is a class which has at least one pure virtual function in it. What are the rules of using constructor in inheritance? To call parameterized …Read More »
Define pure virtual function and Abstract class. When we need to use pure virtual function?
Pure virtual function is a virtual function that does not have body and that is required to be implemented by a desired class. We need to use pure virtual function …Read More »
Define virtual function. When it must be used?
Virtual function: Virtual function is a member function in base class which is overridden in derived class. When we need to solve of function call is done at run time …Read More »
Difference between early binding and late binding
Difference between early binding and late binding Early Binding Late Binding Early binding happens at compile time. Late binding happens at run time. Function definition and function calls are linked …Read More »