A benefit of this design is that each variableclass can be extended if the value must be modified on return, such as numerically incremented or decremented.
I add a string name and port classvariable and then two functions: a constructor and the server.
我添加了一个字符串名称、一个端口类变量,还有两个函数:构造器和服务器。
3
To solve this problem, create a separate class for each variable you need to save, naming the class as the variable name you need to reference in subsequent tests.