Re: Default constructor
From: Alf P. Steinbach (alfps_at_start.no)
Date: 08/29/04
- Next message: John Harrison: "Re: Default constructor"
- Previous message: Gunnar G: "Default constructor"
- In reply to: Gunnar G: "Default constructor"
- Next in thread: Gunnar G: "Re: Default constructor"
- Reply: Gunnar G: "Re: Default constructor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: John Harrison: "Re: Default constructor"
- Previous message: Gunnar G: "Default constructor"
- In reply to: Gunnar G: "Default constructor"
- Next in thread: Gunnar G: "Re: Default constructor"
- Reply: Gunnar G: "Re: Default constructor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|