Hi,
Lets say I have some 10 functions named -
display1()
display2()
display3()
display4()
......
......
display10()
Assume that all these functions have been defined. Now we have to
modify the program so that whatever function name is entered by
keyboard will be invoked. For example if we are accepting string
display5 from the keyboard then display5() method should be invoked.
The flow should be generic so that the code need not be modified even
though some more functions are added.
If any one has any idea do let me know.
Regards
Shiv
Lets say I have some 10 functions named -
display1()
display2()
display3()
display4()
......
......
display10()
Assume that all these functions have been defined. Now we have to
modify the program so that whatever function name is entered by
keyboard will be invoked. For example if we are accepting string
display5 from the keyboard then display5() method should be invoked.
The flow should be generic so that the code need not be modified even
though some more functions are added.
If any one has any idea do let me know.
Regards
Shiv
Comment