I need to take Input from main and use it to populate a array inside of a class example of what Im working with bellow | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need to take Input from main and use it to populate a array inside of a class example of what Im working with bellow

https://code.sololearn.com/cGJcLi5jk4JK/?ref=app

2nd Dec 2017, 7:31 PM
kenneth Stanley
kenneth Stanley - avatar
2 Answers
0
you can't assign a value of any attributes of class. you can do this to class example: objectName = new className(); objectName.arrayName[elementIndex] = value
2nd Dec 2017, 8:36 PM
ArrowInAKnee
ArrowInAKnee - avatar
0
all these information is written in the lessons. If sth is not written in lessons you can find it in documentation on microsoft website or stackExchange
2nd Dec 2017, 8:44 PM
ArrowInAKnee
ArrowInAKnee - avatar