Default constructor
From: Gunnar G (debian_at_comhem.se)
Date: 08/29/04
- Next message: Alf P. Steinbach: "Re: Default constructor"
- Previous message: Steven T. Hatton: "Cpp Considered Harmfull:was:Re: To bean or not to bean"
- Next in thread: Alf P. Steinbach: "Re: Default constructor"
- Reply: Alf P. Steinbach: "Re: Default constructor"
- Reply: John Harrison: "Re: Default constructor"
- Reply: Cy Edmunds: "Re: Default constructor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 Aug 2004 18:22:27 GMT
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?
- Next message: Alf P. Steinbach: "Re: Default constructor"
- Previous message: Steven T. Hatton: "Cpp Considered Harmfull:was:Re: To bean or not to bean"
- Next in thread: Alf P. Steinbach: "Re: Default constructor"
- Reply: Alf P. Steinbach: "Re: Default constructor"
- Reply: John Harrison: "Re: Default constructor"
- Reply: Cy Edmunds: "Re: Default constructor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|