Hi! I'm trying to write a simple code where I test the inheritance of a class and two derived classes. I am a beginner and my professor wants to keep it simple. So no pointers or overloading. I'm not sure how to fix this error.
Oh the complete error is :
binary'>>' no operator found which takes a right hand operand of type 'overloaded - function' or there is no acceptable conversion.
I am getting the error on my couts. The main is just to test if the methods in my class works and the derived classes methods work.
I am running VS 2015 if that helps.
I'm not sure why its happening because I've written a similar program and it has compiled with no errors.
The setAge function is supposed to take an argument, you aren't providing it with one. Try creating another variable in main, get input for it, then call the function with that variable.