Re: Default constructor

From: Alf P. Steinbach (alfps_at_start.no)
Date: 08/29/04


Date: Sun, 29 Aug 2004 18:29:52 GMT


* Gunnar G:
> If I don't define a default constructor for my class "Foo", I still get one
> from the compiler. But if I define a constructor that takes an argument, I
> don't get the default constructor, why?
> I understand that this is a rule in the language, but what is the motivation
> of this rule?

To have a default and allow you to take charge.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Relevant Pages