If I define a constructor for a class that has 5 parameters…
Why if i pass no parameter do I get the error message Not enough arguments, got 0 expect 5
Where is the default constructor now?
If I define a constructor for a class that has 5 parameters…
Why if i pass no parameter do I get the error message Not enough arguments, got 0 expect 5
Where is the default constructor now?
If it’s your class, there is no other unless you define one. So define one.