Exercises 4(280) 1.Create a Text class that contains a string object to hold the text of a file. Give it two constructors: a default constructor and a constructor that takes a string argument that is the name of the file to open. When the second constructor is used, open the file and read the contents into the string
Exercises5 1. Create two classes called Traveler and Pager without default constructors, but with constructors that take an argument of type string which they simply copy to an internal string variable. For each class, write the correct copy-constructor and assignment operator. Now inherit a class