Ms. Infinity
Not home work sir, I'm learning coding, in most of the text books and in youtube channel everyone has used constructor. So I thought of getting elements from the user using for loop.
I didn't succeed still.
I'm just curious to learn and try to implement something new
I'm really not sure what you mean by "not using constructor".
Constructor is a basic mechanism to create an instance of a certain type, nothing more. You have to invoke it somewhere to create objects.