Page 1 of 1

Calling class methods in constructor

Posted: Sat Sep 25, 2004 10:40 pm
by TillTheDay
I'm wondering if it's alrite to call methods from a class within the constructor. So i have a class with various functions, but i want to use some of the functions in the constructor to help get the data formatted and all. Is this ok?

Posted: Sat Sep 25, 2004 10:48 pm
by anjanesh
It alright is in C++. So it should be alright here too.

Posted: Sat Sep 25, 2004 10:50 pm
by TillTheDay
Cool, thanks

Posted: Sun Sep 26, 2004 12:40 am
by feyd
yes, you can call methods inside your constructor.