Can anyone help!
Problem: write a program to initialize, add to, remove from, and print out a list of records. The database and the records should be separate C++ classes. In addition, overload the + operator to create the combination of two databases.
Question: how to overload the + operator to combine two different database? Assuming this is given in main:
Database db;
db.insertRecord("Doe, John", 2542698, 2.5, 5);
Database db2;
db.insertRecord("Lewis, Rick", 4562457, 3.8, 2);
Database db3 = db + db2;
Thanks for your help.