[Dev-C++] Question about class objects
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2002-10-23 11:33:14
|
When I create a class object, can I call a member function right away? I'm thinking that if I have private data I want to initialise when the object is created I could put in a member function that does it, but can I call it immediately? Instead of MyClass ObjectOne; ObjectOne.StartUp(); I know that a constructor initialisation list will do the same, can someone show me an example of that as well as I am a little confused by the syntax. Daniel _________________________________________________________________ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp |