NM
Size: a a a
NM
NM
U
NM
NM
NM
NM
bc.addBar("Chicago", 1020, "US");
cout << "I am here!" << endl;
bc.addBar("NYC", 1300, "US");
cout << "I am here!" << endl;
bc.addBar("Paris", 1200, "France");
cout << "I am here!" << endl;
int n = bc.getSize();
for (int i = 0; i < n; i++) {
cout << bc[i].getName() << " ";
cout << bc[i].getValue() << " ";
cout << bc[i].getCategory();
cout << endl;
}
cout << "Size is: " << n << endl;
Object destroyed yo!!!
I am here!
Object destroyed yo!!!
I am here!
Object destroyed yo!!!
I am here!
0
0
0
Size is: 3
NM
U
U
NM
NM
NM
NM
U
U
A
NM
NM