View Single Post
Old April 1st, 2003, 01:07 PM     #8 (permalink)
squeech
Senior Member
 
squeech's Avatar
 
Join Date: May 2002
Location: Rocky Mountain High
Posts: 613
One thing to remember: The default constructor (or initialization function as I think you called it) is a member function of the class BarrierType. This means that it has access to the private member variables without use of the dot operator.

Also, that void does not have to be in there

Try this:
Code:
BarrierType::BarrierType()
{
     State = true;
     Mode = 'P';
     Code = "0000";
}
edit~A paramaterized constructor follows the same logic, except you enter paramaters in the parentheses and set your three values equal to them.
__________________
Talking in numbers doesn't make you smarter.
squeech is offline   Reply With Quote