class Customers{
std::string First_Name;
std::string Last_Name;
int Age;
std::string Address;
std::string City;
std::string Phone;
public:
Customer();
Customer(std::string fName, std::string lName, int Age, std::string Address, std::string City, std::string Phone);
class GroupType{
public:
std::string GroupName;
// Allocate memory for Customer Array that accepts 5 objects from the class Customer
Customer *premiumGroup = new Customer[5];
One of the Objects I want to insert into array:
Customer *Customer1 = new Customer("Johnny","Bravo", 90,"2342 Hairwax Ave", "Omaha","(100) 100-1000");
I created a construction to deal with the private variables. They are not an issue. I don't know how I to call create the class array inside this other class and how to insert items into it because its a double class.