Posted by Chris on November 29, 2001 at 18:04:18:
Just as a test i made a truck with default data..but when i try to get it back i returns nothing..here is the calls i made:
Trucks = new Hauler(Name, Address, Direction);
cout << Trucks->getName() << endl;
getName is a temp function i made in the base class just to test...but when i do this...it cout's nothing. I am sure Name, Address, and Direction are set right..and in the base class they are setting the data members correctly...i just can't seem to get them back. Whats wrong here?
Post a Followup