I am making a very basic parent/child class based program that shows polymorphism. It does not compile due to a few syntax errors reading "function call missing argument list. Lines 76 and 77, 81 and 82, and 86 and 87.
Well you can't call a function without giving it arguments....
Also it seems that your parameters have the same name as the variables in your class, that means "cin>>h;" will not save the value in your object's variable, but in the argument variable of the function.
And you are only inheriting the public part of "people" class and considering that the variables of your objects are in the private part you will not be able to save your values in anything.
hmmm... well the idea is to be able to override the information based on the users input. I'm not sure what arguments I am supposed to give the functions if it is not returning anything. Its just simply taking the information provided by the user and regurgitating it. Nothing fancy. I figured just calling the object type of the class would essentially call that that particular function where it would then ask the user to input data.
edit: I did not see your post until just now poteto. I am about to review it and see if this works for what I am doing.