This is not an extra credit assignment, even though it said it was before. That was a typo. There will be an extra credit part of this below, check back later.
Create a class to represent a string. It will have an array of characters to hold the string and a length value to tell how many are used. You do not have to create memory for the array, just use a constant size. You will need methods to prompt the user for the string to store, return the length, print the string.
Then create a second class that inherits from string. It will be called name. This will override the prompt and print methods. You will prompt the user for the first and last name separately and store the parts of the name in two different arrays. So you will need two different length variables. You can add two new methods that print the first and last name seperately. The name versions of print,prompt and return length will have to take this into account. The name class should look like the first and last name are concatenated together. So if you print a name you get a string like 'kent archie', even though it is stored in two arrays.
Lastly, write a function that will print either names or strings. It will take only one argument. This is not a method on either class.
Extra Credit
Wait for it.
This is worth up to 5 points.
You should turn in a listing of the program. Staple the cover sheet to that.
Think about how you will do this so you can ask questions.
ASK if you have any questions.