Re: Default constructor
Date: Tue, 30 Dec 2003 15:43:43 -0500
In addition:
if you provide no constructor, the compiler will generate a 'default' (no
parameters) constructor. As soon as you declare a constructor (with or
without parameters), the compiler will no longer generate the default for
you.
Dan
Relevant Pages
- Re: Linking error
... you declare that this class has a default ... so the compiler will not). ... > bool password() ... Here you *use* the default constructor of comp_network. ... (alt.comp.lang.learn.c-cpp) - Re: Internal constructor "visible" outside of assembly. (BUG IN COMPILER CONFIRMED, EXAC
... for the compiler, it looks like the function verifyMethodCall gathers the ... Mono on the other hand can resolve the string, it also finds the constructor ... public class Derived1:Base { ... (microsoft.public.dotnet.framework.clr) - Re: Internal constructor "visible" outside of assembly. (BUG IN COMPILER CONFIRMED, EXAC
... for the compiler, it looks like the function verifyMethodCall gathers the ... Mono on the other hand can resolve the string, it also finds the constructor ... public class Derived1:Base { ... (microsoft.public.dotnet.languages.csharp) - Re: Internal constructor "visible" outside of assembly. (BUG IN COMPILER CONFIRMED, EXAC
... for the compiler, it looks like the function verifyMethodCall gathers the ... Mono on the other hand can resolve the string, it also finds the constructor ... public class Derived1:Base { ... (microsoft.public.dotnet.framework) - Re: Object reference not set to an instance of an object
... Even if it can choose a constructor, ... > Are you saying that all OO compilers require us to both declare and then ... Is that really inherent in OO compiler design? ... >> really create an instance of TStrings since it has abstract methods? ... (alt.comp.lang.borland-delphi) |
|