How can i write a function which takes number(n) as input and automatically creates  (n) number of objects for a class
<pre><code>for(int i=0; i&lt;n;i++) {
    Node "obj"+i =new Node();
}

obj1.Node_val(2,3);
obj2.Node_val(9,8);
</code></pre>

<p>i tried this, but not works.</p>

<p>Please can you help. Thank you.</p>
