|
From: Chad A. <ae...@vr...> - 2002-11-08 04:03:53
|
If you have no constructor, a "default constructor" is created implicitly.
class A {
public:
void method();
private:
std::string mString;
};
delete new A();
A().method();
A a;
a.method();
etc. etc.
Josh Brown wrote:
> Can a concrete class that does not derive from anything not define a
> constructor? If so how do you instantiate an instance of the class?
>
> Josh
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> ISUGameDev-devel mailing list
> ISU...@li...
> https://lists.sourceforge.net/lists/listinfo/isugamedev-devel
|