先看问题:在后面的文章中会给出答案:|)
Q: Can one constructor of a class call another constructor of the same class to initialize the this
object?
Q: Is the default constructor for Fred always Fred::Fred()?
Q: Which constructor gets called when I create an array of Fred objects?
Q: Should my constructors use "initialization lists" or "assignment"?
does "every rule has exceptions"
have exceptions? reminds me of Gdel's Incompleteness Theorems
Q: Should you use the this pointer in the constructor?
Q: What is the "Named Constructor Idiom"?
constructor/ destructor
Virtual
Q: What is virtual function?
Q: What is a "pure virtual" member function?
Q: How virtual functions are implemented C++?
Q: What is pure virtual function? or what is abstract class?
Q: What is Pure Virtual Function? Why and when it is used?
Q: How Virtual functions call up is maintained?
Q: What is a virtual destructor?
Inhertitance
Q: What is inheritance?
Q: When should you use multiple inheritance?
Q: Explain the ISA and HASA class relationships. How would you implement each in a class
design?