So I am new here, and am totally new to programming. I am trying to take a c++ programming course, and to be completely honest, am lost half the time. Could anyone help me with my code? I am trying to do the following:
"Write a program in which you create a Hen class. Inside this class, nest a Nest class. Inside Nest, place an Egg class. Each class should have a display() member function. For each class, create a constructor and a destructor that prints an appropriate message when it is called. In main(), create an instance of each class using new and call the display() function for each one. After calling display(), free the storage using delete."
My problem: I keep getting the error message: "expected type-specifier before ‘Egg’ Hen::Nest::Egg *e = new Egg();"
I apologize if this is a trivial question, but any suggestions to fix the problem, correct my sloppy coding, etc. would be greatly appreciated!