I need a loop that creates objects of my class which is called "particle"
I want the object to be called "p" + "an index". In addition, I want an another loop to carry out a method that the particle class has on each specific object. What to do?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.