I'm almost entirely convinced that if somebody creates a constructor that can be called without any arguments, their intention is making it a default constructor. I was trying to imagine a case in which this could generate problems but I'm unable to. I'm pretty sure a constructor whose all arguments have default values should overtake all functions of a default constructor including creating temporary objects, even if only because creating a proper default constructor would become impossible due to a "multiple matching signatures" error. I'm not as experienced programmer and I won't be surprised if I had overlooked some downside of this solution so if you could explain why exactly it sounds like a bad idea, I would be thankful.
Sir EmentalerMember Since 09 Mar 2013
Offline Last Active Today, 09:43 AM
- Group Members
- Active Posts 6
- Profile Views 487
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
Sir Ementaler hasn't added any contacts yet.
No latest visitors to show