摘要:
1.提供一个3升和一个5升的水桶,并提供无限多的水,你怎样用它们准确地量出四升和七升的水来呢??
答:装满3升,倒进5升,再装满3升,倒进5升,倒掉5升,把3升剩余倒进去,再装满3升,倒进5升
装满5升,倒进3升,倒掉3升,把5升里剩余倒进3升,再装满5升
阅读全文
posted @ 2008-06-25 16:49
prayforsmile
阅读(2444)
推荐(0)
编辑
摘要:
一:抽象类与接口的区别(用英文描述)
Interface is open to the public, there can not have the private methods and variables.It is used to let others use, but the abstract class can have private methods or private variables.In addition, the realization of the interface must be realized in the interface definition of all methods, and the realization of the abstract
阅读全文
posted @ 2008-06-25 16:38
prayforsmile
阅读(1052)
推荐(0)
编辑