I have a homework to build on paper a parameter marshaling protocol to be suited to call a method with one variable, or with an array (like a polymorphism).
procedure(var1)
procedure(array1)
How would you define the protocol? How about the method in C++