Re: Questions on latest homework answers


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Leon Gunden on April 04, 2001 at 21:42:20:

In Reply to: Questions on latest homework answers posted by M. Heffner on April 04, 2001 at 17:58:03:

: I have a couple questions on the latest home work assignment on
: inheritance.

: First, on question number 19, I think the answer should be 2, rather
: than 5 (2 + 3). Answer 3 states "to construct an object's sub-objects
: before the rest of the object is constructed," however this is not
: entirely correct. The sub-objects of a class are always implicilty
: constructed prior to the rest of the object, the member initializer
: list allows the programmer to explicitly call a specific constructor
: of the sub-object. The member initializer list does NOT allow the
: programmer to change the default construction order.

Right on. I was gonna post and say the same thing.

Leon



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]