Use static variables. They are class variables.You will always get updated values when they are altered between methods of different classes.
Type: Posts; User: rohan22
Use static variables. They are class variables.You will always get updated values when they are altered between methods of different classes.