Set-12 what is RTTI? which are advance type casting operators? Difference between static_cast and dynanic_cast what is virtual function table what is virtual function pointer Why we cannot declare constructor as virtual? what is the need to declare distructor as virtual? Difference between function overloading and function overriding.
Tag: c++
Cpp Set-11
Set-11 what is object slicing? what is up-casting and down-casting? what is virtual function what is polymorphic class what is function overriding? what is override identifier what is pure virtual function.
Cpp Set-10
Set-10 Explain Hierarchy. explain association, composition and aggregation. explain inheritance explain shadowing which are the application of scope resolution operator? explain mode of inheritance types of inheritance what is diamond problem? explain virtual keyword in cpp what is typing?
Cpp Set-09
Set-9 what are storage classes? what are different scopes of element in cpp? explain static keyword. what is instance variable, class level variable? what is instance method, class level method? why static member function do not get this pointer? can we declare static member function as constant? what is anonymous class? what is singleton class … Continue reading Cpp Set-09
Cpp Set-08
Set-8 what is operator overloading? which functions compiler provides for any class by default? what is function object? what is smart pointer? what is conversion function?
Cpp Set-07
Set-7 difference between malloc function and new operator. what is destructor? can we overload destructor? and why? what is shallow copy or bitwise copy? what is copy constructor in which condition copy constructor gets called? explain deep copy what is friend function and class?
Cpp Set-06
Set-06 1. What is exception handling 2. explain keywords - try, catch, throw. 3. what is default catch block? 4. explain exception specification list. 5. explain nested try-catch block. 6. can you throw exception from constructor? 7. Explain abstraction. 8. explain encapsulation. 9. explain new operator in cpp. Top 1. What is exception handling If … Continue reading Cpp Set-06
Cpp Set-05
Set-05 what is aggregate type? explain constructor member initializer list. what is constant member function? explain mutable keyword explain reference in cpp. difference between pointer and reference. Top 1. what is aggregate type?. According to c++03 specification, by default class is not considered as aggregate type/class.In following cases, class can be considered as aggregate … Continue reading Cpp Set-05
Cpp Set-04
Set-04 what is function overloading? what is name mangling? explain extern "c" explain default argument. what is macro? difference between macro and inline? what are different types of errors? explain words - declaration, definition, initialization, assignment. what is construtcor? types of constructors. what is constructor chaining? Top 01. what is function overloading? If implementation of … Continue reading Cpp Set-04
Cpp Set-03
Explain pointers. Explain constant keywordwhat is L-value and R-value Explain this pointer 1. Explain pointers. It is a derived data type.If we want to store address of another variable/object/array/function/pointer function then we should use pointer.pointer is a variable which stores address of another variable.Pointer declaration: int *ptr; (un-initialized pointer) Employee *ptr; (un-initialized pointer)uninitialized pointer is … Continue reading Cpp Set-03