- Java面向?qū)ο筌浖_發(fā)
- 姚駿屏 汪衛(wèi)星主編
- 11字
- 2018-12-29 19:04:19
第3章 面向?qū)ο笤O(shè)計思想
3.1 抽象
工作目標(biāo)
● 抽象類的概念
● 定義和使用抽象類
● final關(guān)鍵字的使用
工作描述
創(chuàng)建一個抽象類Animal,它包含一個abstract的sound()方法;派生出一個子類Dog,實現(xiàn)父類抽象方法sound();創(chuàng)建子類Dog對象,然后調(diào)用它的sound()方法。
工作分解-理論闡述
推薦閱讀
- Hadoop+Spark大數(shù)據(jù)分析實戰(zhàn)
- Python Network Programming Cookbook(Second Edition)
- Learning Python Design Patterns(Second Edition)
- Hands-On Swift 5 Microservices Development
- Mastering Unity 2D Game Development(Second Edition)
- Advanced Express Web Application Development
- Unity 3D腳本編程:使用C#語言開發(fā)跨平臺游戲
- 零基礎(chǔ)學(xué)C語言第2版
- HTML5開發(fā)精要與實例詳解
- Illustrator CC平面設(shè)計實戰(zhàn)從入門到精通(視頻自學(xué)全彩版)
- Arduino機器人系統(tǒng)設(shè)計及開發(fā)
- Getting Started with React VR
- 人人都能開發(fā)RPA機器人:UiPath從入門到實戰(zhàn)
- 數(shù)據(jù)結(jié)構(gòu):Python語言描述
- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)