I have a method that create the grid, but I want to use the grid and change the grid in other method, how do I have the grid when I call the method 2.
class:
mian:
If method 2
create_grid method
method 2
method 3
java please
We can call the create grid method in the method 2 by simply calling the create grid method in the method 2 or we can do the method overloading of the method 2 where we can have the name of the method with different number of parameter an different types of parameter , you can define the method 2 as in the first line you call the create grid method with the necessary parameters and than you store the value of the variables from the create grid method and use it in the method 2.
Get Answers For Free
Most questions answered within 1 hours.