【发布时间】:2010-10-29 13:31:04
【问题描述】:
我正在 Android 中编写一个类,它需要调用其函数的类中的某些参数。
例如,我的班级被称为“DoStuff”
DoStuff 有 3 个功能:
public static doThis(canvas, tick, toggle, something);
public static doThat(canvas, tick, toggle, something, something);
public static doTheOther(canvas, tick, toggle, something, something, something);
当我从其他地方(DoStuff 不知道某个地方)调用它的功能时,有没有办法让我将画布、勾选和切换隐式传递给“DoStuff”。
【问题讨论】:
标签: android class parameters