240 私信
这个人很懒,暂无签名信息
0

Design Patterns -- Factory Method

The Factor Method pattern lets a class developer define the interface for creating an object while retaining control of which class to instantiate, see pic: To summarize, the signs that Factory Metho...

0

关于java中byte只能表示-128~127的问题的解释及处理

按照计算机里的数值表示方式: 正数,补码和原码一致。 负数,补码为原码取反,然后再加一。   那么16的二进制表示就是0001 0000, -112的二进制表示就是1001 0000   计算机中一个字节为8位二进制,那么一个字节的数字的模为2^8 = 256 模的概念是这样的,比方说模为12(时钟),那么4和8互为补数. 因为 10 - 4 = 6 10 + 8 = 12 + 6 =6   所以...

个人介绍
暂无介绍