Making a hauler


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Chris on November 28, 2001 at 22:17:18:

I'm trying to make a hauler object and put it in my array of towtruck pointers by doing this:

Trucks[0] = new Hauler(ID, Address, Direction);

Trucks is defined as:
TowTruck* Trucks[10];

The constructor i am trying to access is the one TowTruck has....but when i make this call i get an error saying "Hauler::Hauler : no overloaded function takes 3 parameters"

So i assume its not looking for the constructor in the base class...but i have all the inheritance set up correctly...

What am i screwing up?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]