On Sat, Dec 26, 2009 at 1:14 PM, Sunny Sharma <[email protected]> wrote:
> In c++, can we define a constructor in a .h extension file? we can obviously
> declare the constructor and the functions in the .h file extension but can
> we define it also?

I am not an expert in CPP. But my cents here:

Basics : Constructors are like functions. Except for some differences.
(which you can google up)
Obvious Answer :  Why would you want to implement a function in the header file?
Food for thought : Why do people not define functions in a header file?

And only if you after you have thought about the above question click
on the below link :)

http://stackoverflow.com/questions/1617055/function-implementation-in-file-h-vs-in-file-cxx

Regards,
Aanjhan
_______________________________________________
Users mailing list
[email protected]
http://lists.dgplug.org/listinfo.cgi/users-dgplug.org

Reply via email to