In one program if multiple constructor exists then there multiple problem exists. How could i recover it?
Hello, can anyone give me a solution for the following problem????????? I have a class Teller with two possible constructors : Teller() and Teller(int base) Then I have a class TellerInc that is based on the class Teller, also with two possible constructors: TellerInc() and TellerInc(int step). Into the main I want to create an object of TellerInc and give a value for the step and the base (thus I have to create the TellerInc(int step) that gets the Teller(int base)) The header file of Teller: The header file of Tellerinc: Into the main: TellerInc tel(step):Teller(base); error: TellerInc undeclared
Hello, can anyone give me a solution for the following problem????????? > > I have a class Teller with two possible constructors : Teller() and > Teller(int base) > Then I have a class TellerInc that is based on the class Teller, also with > two possible constructors: TellerInc() and TellerInc(int step). > Into the main I want to create an object of TellerInc and give a value for > the step and the base (thus I have to create the TellerInc(int step) that > gets the Teller(int base))[/color] Then TellerInc needs another constructor with 2 arguments: * the step, which is used by TellerInc * the base, which is passed to Teller