Question about constructors!

I have two classes, Monom, and Polinom. Monom has two attributes (c_, e_ , both are unsigned). Polinom's only attribute is
Monom base_[maxsize]; (maxsize is a constant declared at the beginning of the program).

Monom's constructor, by default, sets c_ = e_ = 0 .The question is : In the Polinom objects created using the default constructor (which is "empty" Polinom :: Polinom(void) {}),are the Monom objects in its array automatically "zeroed"??

Thanks in advance
Last edited on
No, you will need to put use a loop to populate it.
And it's worth mentioning also that neither c_ nor e_ will be zeroed unless explicitly set to zero by the default constructor.
Topic archived. No new replies allowed.