Quantcast
Viewing all articles
Browse latest Browse all 72043

Global Class Instance

Hello all,

I created a new class which has parmMethods.

There are 2 class that will work on the 'new class': Class A and Class B.

In class A, it will add values to the parm method of the new class, in which I also create an instance of the new class.

In class B where the process will end, I will call the new class' run method to do a process using the values passed in its parm methods from Class A.

But I think it's overwriting the instance of the new class when it reaches class B, is there a way I can create an instance of the new class global so it won't overwrite the instance created from Class A? 


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>