Is it possible to declare an array of class objects without specifying how many there will be?
Like example i want to create an instance of a Class called CTickets, i do
To create an array of 3 instances i do
What if i don't know how many instances i will have? Can i create an array? What is the best way? I want to iterate the tickets thus i think an array of instances is the best. How do i do it? The purpose is that i would like to have exit strategies for each ticket.
Actually you are both wrong
A default constructor is not needed, as if there is not the compiler will create one. You quoted documentation incorrectly, it says
"This means that if a parametric constructor is
declared in a class, but a default constructor is not declared, you can
not declare the arrays of objects of this class."
So it's just if a parametric constructor is declared, that you need to also declare a default constructor.
Of course, it's what that means. It's an array of objects, not an array of pointers.