0
Which variable inside main method ?
The variable initialized in the main method is what kind of variable ?
6 Réponses
+ 2
Shahriar Kamal Nafiz What is your question? About Local variable you are asking or not
+ 2
Inside the main method Local variable is initialized.
For example,
Public class Method{
Public static void main(string[args]){
int num = 10;
Statements
}
}
num is Local variable
Local variable is declared within the scope.
+ 1
Can you share your code
+ 1
to operate on an instance variable, an object must be instantiated. the main method is a static method, so it deals with local variables or static variables. what you can do is instantiate objects and put them to work
0
yes
0
I was stuck at modifyind instance variable from main