FAQ 21.01 What is the purpose of this chapter? FAQ 21.02 What is a virtual member function? FAQ 21.03 How much does it cost to call a virtual function compared to calling a normal function? FAQ 21.04 How does C++ perform static typing while supporting dynamic binding? FAQ 21.05 Can destructors be virtual? FAQ 21.06 What is the purpose of a virtual destructor? FAQ 21.07 What is a virtual constructor? FAQ 21.08 What syntax should be used when a constructor or destructor calls a virtual function in its object? FAQ 21.09 Should the scope operator :: be used when invoking virtual member functions? FAQ 21.10 What is a pure virtual member function? FAQ 21.11 Can a pure virtual function be defined in the same class that declares it? FAQ 21.12 How should a virtual destructor be defined when it has no code? FAQ 21.13 Can an ABC have a pure virtual destructor? FAQ 21.14 How can the compiler be kept from generating duplicate outlined copies of inline virtual functions? FAQ 21.15 Should a class with virtual functions have at least one non-inline virtual function? |