A new comers' reply: For question 1: Try the step below: Add "virtual int area() =0;"(of course it is a public member) in the definition of class Cpolygon. For the lesson, search virtual class on the Internet. For question 2: I admire your imagination. It is possible, but not in your way. See the use of "constructor". Especially "default constructor."
With ears and eyes.