I hope the question is accurate. (And my description).
Consider the following:
// Declare an object of class WiFiClient, which allows to establish a connection to a specific IP and port
// Declare an object of class PubSubClient, which receives as input of the constructor the previously defined WiFiClient.
// The constructor MUST be unique on the network.
WiFiClient myClient;
PubSubClient client(myClient);
Since most of my programs use these classes, it isn't unusual for me to copy a boilerplate or clone a similar program for modification, and accidentally forget to make the constructor unique.
So, is it possible to use a variable or macro or const instead of "myClient". Is there a way to make this dynamic?