- Default arguments in virtual functions - Always the default argument mentioned in the base class function declaration is used. The default arguments are not part of class signature. Default arguments is added to the function call at compile time. But the function call resolution is made at run time.
- Why virtual destructor is used.
- Difference between static and dynamic casting. Dynamic cast will give a compile error if the class is not polymorphic.
- Keyword 'auto' - This is good while creating iterators to avoid the long initializations
- Good link for c++ reference
- Name Mangling and extern “C” in C++
- const functions in c++
- static const in c++
- abstract data types?
- Operator overloading
- we can restrict dynamic allocation of objects of a class by declaring a private new and new[] operators.
- Operators which cannot be overloaded
- . operator, -> operator, ?: operator, :: operator
- Conversion operators
- const functions in c++
- Smart pointer in c++
- Virtual functions
- http://blog.httrack.com/blog/2014/05/09/a-basic-glance-at-the-virtual-table/
- http://www.studytonight.com/cpp/virtual-functions.php
- Virtual Classes
- Constructors
- Constructors and array of objects with new
- If One class
- http://stackoverflow.com/questions/8312054/constructors-and-array-of-object-in-c
- int *n = new int[3]{1,2,3};
- A *a = new A[3]{{1,2},{3,4},{5,6} // This invokes constructor with 2 arguments for 3 objects.
- Copy constructor argument should be constant
- Conversion constructor
- The 'explicit' keyword
- Constructors cannot be virtual and can be private
- Templates
- Template specialization
- Passing non type arguments to templates
- The string class dynamically increases or decreases the memory for characters.
- Conversion operators
- Anatomy of assignment operator - good
Wednesday, April 27, 2016
C++
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment