From 2676083735016998218 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,a11549f6db6f9161 X-Google-Attributes: gidf78e5,public From: "Paul D. DeRocco" Subject: Re: Constructor with no argument??? Date: 1997/04/18 Message-ID: <335722BB.769A@ix.netcom.com>#1/1 X-Deja-AN: 235656198 References: <5j0osb$jis@dfw-ixnews9.ix.netcom.com> X-Original-Date: Fri, 18 Apr 1997 00:28:59 -0700 Organization: The Illiterati X-Netcom-Date: Fri Apr 18 2:32:48 AM CDT 1997 X-Auth: PGPMoose V1.1 PGP comp.std.c++ Newsgroups: comp.std.c++ Originator: fjh@murlibobo.cs.mu.OZ.AU Julie Ranier wrote: > > I'm programming with Borland ObjectWindows 5.0. I've seen in example > code statements like the following: > new TMyWindow; > where TMyWindow is a derivative of TWindow. I don't know how this > works, it has no argument! Shouldn't it have to be like > new TMyWindow(arg1, arg2, ...); > or at least > new TMyWindow(); To be consistent, it "should" be, but it's legal the way it is. -- Ciao, Paul D. DeRocco (Please send e-mail to mail:pderocco@ix.netcom.com instead of the return address, which has been altered to foil junk mail senders.) --- [ comp.std.c++ is moderated. To submit articles: try just posting with ] [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ] [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ] [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ] [ Comments? mailto:std-c++-request@ncar.ucar.edu ]