Pointer to void, or a void pointer, is a special type of pointer that has a great facility of pointing to any data type.Example:int i; float f; int* exf; float* ...
Void pointer are something like you put your stuff like shoes, bag, shirt in your suitcase. and then you just take out all that stuff from suitcase.so we can cast any pointer to void*, and after we ca...
Suppose there are number of classes and their objects whenever we call a particular object at run time then memory is allocated to that particular object and that is called Instance.
When you create a custom type (class) in any language, that class in OOP is called Object and when you create an istance of this class just as we create instance of built-in types e.g. (int a,float b) it is called instance of the object.
When an object is created, a pointer to this vtable, called the virtual table pointer or vpointer, is added as a hidden member of this object (often the first member). The compiler also generates &quo...
We cannot inherit private members of a class,but you can use friend functions to access private data
sean
Oct 10th, 2011
If you can declare the sub class in the base class (i.e if you make sub class as inner class in base class), you will be able to access the private members of the base class.