My Teacher want me to Write MAX function in C++ that takes two integer parameters and returns the greater one. then by using polymorphism rewrite it again to take two character parameters and a third time that takes two float parameters. I know how to do the Max function part but i never took polymorphism before if anyone can write this program for me real quick i would really appreciate it .
This is not polymorphism. What you want is called Function Overloading. Polymorphism has to do with class inheritance hierarchies and virtual member functions and is-a relationships, etc.
sorry for the late response but I'm sure he said polymorphism maybe he is wrong because he is suppose to be a java teacher and programming teachers aren't that good in egypt anyways .
If you know C, the only thing you have to know about function overloading in C++ is that the functions have the same name and are differentiated by the number and/or types of the parameters they take.