How to update state variables in Objects (similar to pass by reference)

Printable View