I’m new to java and I’m stuck with this. I have one BasePage class that contains a “global” List and an int value like this; Moreover, I’ve two classes that extend that page; And other: Then, when I access “stringList” and “number” after calling that who classes, the values are not “stacked” in BasPage. Is there a way to achieve
Tag: global-variables
A global variable as a method argument in the same java class: Is this bad programming practice?
Below code works just fine. But as a newbie I’m not sure if it’s bad practice to pass the global variables into the private method as an argument in the same java class. Is this acceptable? Is there a better or more acceptable way to do it, in case this is bad programming? Answer If the expectancy is that the