Listing 2. display_func variable declaration, sample size incrementer.
清单2 . display_func变量声明、样例大小增量程序。
The two Incrementer classes purport to do some do-nothing work (incrementing a variable).
两个 Incrementer 类的用途是做一些无用的工作(让一个变量递增)。
Your first method, annotated as Shared and therefore visible externally from the class, defines the incrementer.
第一个方法被注解为shared,因此可以在这个类以外的地方看到它,它定义了递增操作。
Let me generalize this. In this case, my incrementer was just adding 1 to an integer, it's a pretty straightforward thing to do.
当我完成后,我不会再显示任何信息了,好,好,那么你们已经看过两个简单的例子了,让我来讲讲概念,在这个例子中。
应用推荐