导航

2005年1月23日

摘要: 1) static constructors适合用来做那些不能初始化,且只需做一次的设置工作。 2) private constructors可以保证该类不被实例化。 3) property的set和get函数使数据封装更好,且比C++中手工编写set/get函数省力。 (The client can interact with the properties directly, wi... 阅读全文

posted @ 2005-01-23 01:15 bullfinch 阅读(371) 评论(0) 推荐(0) 编辑