Monday, April 21, 2008

Some points about constructors to remember

1. Constructors are just functions with the same name as the class.
2. Constructors are intended to initialize the members of the class when an instance or the object of that class is created.
3. Constructors are not called directly (except for through initializer lists)
4. Constructors will not be virtual.
5. Multiple constructors for the similar class can be defined. They must have different parameters to differentiate them.



Halloween Costumes

No comments: