Listing 3 extended the Fixnum class, which was known statically.
清单3扩展了fixnum类,该类被认为是静态的。
You could easily just open up the Fixnum class and add a method to print a bar of the appropriate length, as in Listing 3.
您可以打开fixnum类,并添加一个方法来打印出相应长度的柱,如清单3所示。
You could easily just open up the Fixnum class and add a method to print a bar of the appropriate length, as in Listing 3.
您可以打开fixnum类,并添加一个方法来打印出相应长度的柱,如清单3所示。
应用推荐