manish2you
BAN USERYou can write your own v-table and all, refer:codeproject.com/KB/cpp/InheritancePolymorphismC.aspx
- manish2you September 24, 2011C doesn't support inheritance.
- manish2you September 24, 2011There are four type of cast:
dynamic cast: casting of pointer/objects from one class to another among inherited class at run time.
static cast: checks success/fail for implicit/explicit conversion at compile time.
const cast: cast from const variable to non-const.
reinterpet cast: casting of pointers from one type to other (say int to void and vice versa).
Yes, it still need to use virtual. In fact if you use private while inheriting the class, it will give compile time error as you are accessing private member function instead to follow other class path.
So, the private option is not possible at all.
The default args must start from right most.
- manish2you September 24, 2011Virtual overloading means runtime overloading or simply overriding.
- manish2you September 24, 2011
-Virtual destructor doesn't need V-table creation.
- manish2you September 24, 2011-Destructor can't be override in child class.
-If you are making it pure virtual, you have to provide definition in base class itself.