c++
1. Create a class named Forest. The class has two private data members. One is named NumOfTrees which is an integer and TypeOfTrees which is a string.
The class has two constructors. There is a default constructor and a constructor which gives values to the private data members.
The class also has a ShowData function which outputs the values of the private data members.
2. Next you will write the definitions of the functions and constructors as follows:
The default constructor will assign NumOfTrees to 0 and TypeOfTree to Oak.
The other constructor will have two parameters, one to set the NumOfTrees and one to set the TypeOfTree.
The ShowData function will output the values of the private data members.
3. Write a main function to test each of the functions. Create at least 5 objects of the Forest class. Use both the default constructor and the constructor with arguments. Use the ShowData function to output the values of all of the objects which you created.
Upload the class, the definition and the main function to test the class in Visual Studio.
Make sure to show the results of running the program.