Can we declare a function with the same signature but different return type in the base class?
<p>the question may look silly ,but i want to ask..
         Is there any way we can declare a method in a class with same signature but different return type (like int fun(int) and float fun(int) ) and during the object creation can we dynamically decide which function to be executed! i have got the compilation error...is there any other way to achieve this logic may be using templates...</p>
