80

java 面向对象的三大特性-锦瑟无端五十弦

 6 years ago
source link: http://blog.51cto.com/10972685/2074480
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一封装: 1类:封装的是对象的属性和行为 2方法:封装的是一段具体的业务逻辑实现 3访问控制符:封装的是具体的访问权限 2继承: 1作用:代码的复用 2超类拥有所有派生类所共有的属性和行为,接口拥有部分派生类所共有的行为,派生类拥有派生类特有的属性和行为 3具有传递性,单一继承,多个接口实现 3多态: 1行为多态(抽象方法都是多态)   2对象多态(所有对象都是多态) 3向上造型,强制类型

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK