CS 2704 Homework 3 (Inheritance) Spring 2000 Q Ans Explanation -------------------------------------------------------------------------------------- 1 2 Normally a derived class will add new data and/or function members. 2 2 Inheritance is an is-a relationship. 3 3 4 1 All that's needed is the class declaration, documentation of the effect of the base member functions, and the compiled source for the base class implementation. 5 2 A base object layer is constructed first, then the derived type layer is constructed; has to be this way since often the construciton of the derived type will use members of the base layer. 6 3 Basically just the inverse of construction. 7 2 It IS, of course, illegal to declare the derived class TYPE before declaring the base class TYPE. 8 1 9 1 10 4 Don't forget to count members in the base layer... 2 Half credit was given for this answer. 11 3 2 Half credit was given for this answer. 12 5 Only the public members of the base class are visible through a derived object. 3 Half credit was given for this answer. 13 3 14 5 (looking things up in Stroustrup may have paid off here...) 15 3 An "aisle seat" IS-A "airplane seat" (ignoring grammar).