Question: Assignment 3 C++ Course PLEASE MAKE SURE IT RUNS BEFORE POSTING AN ANSWER Write a program in which you create a Hen class. Inside this
Assignment 3 C++ Course
PLEASE MAKE SURE IT RUNS BEFORE POSTING AN ANSWER
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
