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
Exercises 5(15) 1. Write a class with one virtual function and one non-virtual function Inherit a new class, make an object of this class, and upcast to a pointer of the base-class type. Use the clock( function found in (you'll need to look this up in your local C library guide) to measure the