Rookie2

1st Edition

导航

2012年10月28日 #

简单理解面向对象程序设计(Object-Oriented Programming)

摘要: Object-Oriented Programming = Object + Classification + Inheritance + Communication with messages 是对现实世界的理解和抽象 Object:是属性及其操作的封装体,能够标识自身. Classification:把具有一致的特征(属性)和行为(方法)的对象抽象成类 Inheritance:子类共享父类的数据和方法,是类间的一种关系,提高重用性 Communication with messages: 方法的调用 类(clss): 具有相同特征和行为的对象的抽象,归纳能力 对象(object): 类.. 阅读全文

posted @ 2012-10-28 14:03 Rookie2 阅读(299) 评论(0) 推荐(0) 编辑