how can get static array in class or metod | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can get static array in class or metod

how can get static array in class or metod. I want work in array in class then use member in main

1st Oct 2017, 10:19 PM
Ali Alijaniha
Ali Alijaniha - avatar
1 Answer
0
you can write below code for creating static array. notice : If you want use an object inside of a static method you have to declar that object as static access modifier. https://code.sololearn.com/cWKAYv66J94W/?ref=app
2nd Oct 2017, 6:25 AM
Sayid Yarmohammadi
Sayid Yarmohammadi - avatar