[Solved] program calling default constructor? [closed]
As you have not shown your whole program, so its hard to tell where is the error, but it might be in the default constructor of the doctor class. Anyways here is the code that you can refer. It will give the correct output. Here is the link you can refer to see the execution … Read more