Click to See Complete Forum and Search --> : What are the default Member Functions defined for an empty class
Debkumar
06-03-2002, 02:12 AM
Hi,
What are the default Member Functions defined for an empty class?
(Other than the Default Constructors & Destructors)
Thanks
Debkumar
Danny Kalev
06-03-2002, 08:42 AM
the default assignment operator and a copy constructor. In other words,
the compiler implicitly declares 4 member functions in classes in which
the programmer didn't define any member functions.
Danny
Debkumar wrote:
>
> Hi,
>
> What are the default Member Functions defined for an empty class?
> (Other than the Default Constructors & Destructors)
>
> Thanks
> Debkumar
vaithal@yahoo.com V.Aithal
06-03-2002, 09:42 AM
Other than a default constuctor and destructor an empty class has an assignment
operator function and a copy constuctor.
-V.Aithal
"Debkumar" <Debkumar_c@rediffmail.com> wrote:
>
>Hi,
>
>What are the default Member Functions defined for an empty class?
>(Other than the Default Constructors & Destructors)
>
>
>Thanks
>Debkumar
>
devx.com
Copyright Internet.com Inc. All Rights Reserved