开发者

How to create a selectMode()

开发者 https://www.devze.com 2023-01-20 15:09 出处:网络
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 开发者_StackOverflow中文版but only one disp

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 开发者_StackOverflow中文版but only one display will show and if I want to access the other display I want to be able to select it.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消