Develop a model of the problem you are developing.
This is different from the flowcharting you have been doing throughout the semester. Make sure the model reflects the problem statement.
You then need to develop a C++ program to solve the problem stated by you.
Define a class Name with appropriate data member(s) and member functions (at least constructors and a destructor for each class.)
Define the class First derived from the class Name that will create your first name with appropriate data member(s) and member functions (at least constructors and destructor for each class.)
Define the class Last derived from the class Name that will create your last name with appropriate data member(s) and member functions (at least constructors and destructor for each class.)
You will create an object of the class First and an object of the class Last using the default constructors and constructors with arguments.
The default constructors initialize the two objects F1 and L1. An overloaded constructors will obtain the first name and the last name from the keyboard and create objects F2 and L2.
The program will then display your full name using the function displayName() to display your full name in the format shown below. Firstname Lastname Once the first name and last name are displayed, the program ends.
Other member functions for the classes are defined by the programmer and as a minimum will include constructors, destructors, accessor, and mutating functions.
User-defined functions will be used as needed to solve your problem. This program leaves out a few options for you to select.