tags:

views:

30

answers:

1

I created a method called selectMode(); and I want that method to be able to select a different mode while running. For example I have to different displays but only one display will show and if I want to access the other display I want to be able to select it.

+2  A: 

You could just add an argument to it:

selectMode( mode );

And either always require that mode be supplied, or create a second overload of selectMode with the argument.

Justin Ethier