Re: constructors
From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 09/01/04
- Next message: George Huber: "Re: by ref parameter is just a syntax sugar?"
- Previous message: David White: "Re: constructors"
- In reply to: David White: "Re: constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 01 Sep 2004 03:21:22 GMT
"David White" <no@email.provided> wrote in message
news:ZkaZc.26787$%r.310418@nasal.pacific.net.au...
> "Mike Wahler" <mkwahler@mkwahler.net> wrote in message
> news:rC6Zc.4019$8d1.1427@newsread2.news.pas.earthlink.net...
> > Employee emp(1,
> > "12 Madison Ave",
> > "123-4567",
> > 100,
> > "I. M. Great",
> > 1000,
> > 0.4);
>
> This might not comply with the requirement to create the object
> "dynamically", depending on exactly what that was supposed to mean in this
> case.
I overlooked that.
> If not, then the OP should stick with his/her original code for this
> part.
Employee *emp = new Employee(1,
"12 Madison Ave",
"123-4567",
100,
"I. M. Great",
1000,
0.4);
Thanks for the correction.
-Mike
- Next message: George Huber: "Re: by ref parameter is just a syntax sugar?"
- Previous message: David White: "Re: constructors"
- In reply to: David White: "Re: constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]