In article < .com>,
<> wrote:
>Is constructor a special member function? But I don't think it is
>either a member function or even a special member function although it
>has the syntax of a function. I think it confused with a function due
>to the similar syntax. If i am wrong give some proof and prove you
>points. I think its a fundamental doubt.
A member function is a function, that's a member of a class.
A constructor is a member function.
It can also fall into the so-called category of "special" member function.
Section 12p1 of Standard C++ reads "The default constructor, copy
constructor and copy assignment operator, and destructor are
``special member functions''."
Is there some other underlying question about them though?
--
Greg Comeau / Celebrating 20 years of Comeauity!
Comeau C/C++ ONLINE ==>
http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?