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 »Briefly explain early binding and late binding?
Briefly explain early binding and late binding? The word binding means the mechanism which the compiler uses to decide which function should be executed on which call. Early binding: The …
Read More »Define ambiguity resolution in inheritance. How can it be performed in C++?
Define ambiguity resolution in inheritance. How can it be performed in C++? When a derived class has two base classes, base classes have function with the same name. If we …
Read More »Clearly mention the rules when a class is inherited using private, public and protected mode?
Clearly mention the rules when a class is inherited using private, public and protected mode? Public derivation Private derivation Protected derivation private Not inherited Not inherited Not inherited protected …
Read More »Define Inheritance. Classify Inheritance
Define Inheritance. Classify Inheritance Inheritance is the process of creating new class from existing class. There are 5 types of inheritance. Single inheritance Multiple inheritance Hierarchical inheritance Multiple inheritance Hybrid …
Read More »Write the situation when copy constructor must be used?
Write the situation when copy constructor must be used? When an object of the class is returned by value. When an object of the class is passed by values as …
Read More »