Quick Inheritance questions
I am performing inheritance on a class entitled "Layer". My derived classes will be entitled "Point", "Line" and "Polygon".
My questions are as follows:
1) Do the base classes require a default constructor (with default attribute assignment)?
2) I have a destructor in my base class and my derived class. Do I need to call the base class constructor in my derived class? My compiler gave me errors upon trying.
3) Can you call a derived class (my "Point" class mentioned above) from a base class (my "Layer" class mentioned above).
Thanks for everyone's help:D