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
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