A programmer declares two List instances in the main function:
…
int x;
List mylist1;
List *mylist2;
…
mylist2 = new List;
Suppose that Method_A() is an existing method for the class List.
What would be the correct syntax to call Method_A() on each one of the lists?
Select one:
a. mylist1.Method_A(x);
mylist2->Method_A(x);
b. mylist1->Method_A(x);
mylist2.Method_A(x);
c. mylist1.Method_A(x);
mylist2.Method_A(x);
d. mylist1->Method_A(x);
mylist2->Method_A(x);