Learning Object-Oriented Programming
Gaston C. Hillar
- 出版商: Packt Publishing
- 出版日期: 2015-07-19
- 售價: $2,170
- 貴賓價: 9.5 折 $2,062
- 語言: 英文
- 頁數: 280
- 裝訂: Paperback
- ISBN: 1785289632
- ISBN-13: 9781785289637
-
相關分類:
Object-oriented
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Write reusable code that defines and makes objects interact with one another
- Discover the differences in inheritance and polymorphism in Python, JavaScript, and C#
- Capture objects from real-world elements and create object-oriented code that represents them
Book Description
Learning Object-Oriented Programming is an easy-to-follow guide full of hands-on examples of solutions to common problems with object-oriented code in Python, JavaScript, and C#. It starts by helping you to recognize objects from real-life scenarios and demonstrates that working with them makes it simpler to write code that is easy to understand and reuse. You will learn to protect and hide data with the data encapsulation features of Python, JavaScript, and C#.
You will explore how to maximize code reuse by writing code capable of working with objects of different types, and discover the advantage of duck typing in both Python and JavaScript, while you work with interfaces and generics in C#. With a fair understanding of interfaces, multiple inheritance, and composition, you will move on to refactor existing code and to organize your source for easy maintenance and extension.
Learning Object-Oriented Programming will help you to make better, stronger, and reusable code.
What you will learn
- Generate instances in three programming languages: Python, JavaScript, and C#
- Customize constructors and destructors
- Work with a combination of access modifiers, prefixes, properties, fields, attributes, and local variables to encapsulate and hide data
- Take advantage of specialization and the possibility to overload or override members
- Create reusable and easier to maintain code
- Use interfaces, generics, and multiple inheritance when available
About the Author
Gaston C. Hillar has been working with computers since he was 8 years old. In the early 80s, he began programming with the legendary Texas TI-99/4A and Commodore 64 home computers. Gaston has a bachelor's degree in computer science and graduated with honors. He also holds an MBA, in which he graduated with an outstanding thesis. At present, Gaston is an independent IT consultant and a freelance author who is always looking for new adventures around the world.
Table of Contents
- Objects Everywhere
- Classes and Instances
- Encapsulation of Data
- Inheritance and Specialization
- Interfaces, Multiple Inheritance, and Composition
- Duck Typing and Generics
- Organization of Object-oriented Code
- Taking Full Advantage of Object-oriented Programming
商品描述(中文翻譯)
主要特點
- 撰寫可重複使用的程式碼,定義並使物件互動
- 探索Python、JavaScript和C#中的繼承和多型的差異
- 捕捉現實世界元素的物件,並創建代表它們的物件導向程式碼
書籍描述
《學習物件導向程式設計》是一本易於理解的指南,充滿了Python、JavaScript和C#中物件導向程式碼常見問題的實際解決方案的實例。它從幫助您識別現實生活場景中的物件開始,並展示了與這些物件一起工作使得編寫易於理解和重複使用的程式碼更加簡單。您將學習使用Python、JavaScript和C#的資料封裝功能來保護和隱藏數據。
您將探索如何通過編寫能夠處理不同類型物件的程式碼來最大化程式碼重複使用,並發現在Python和JavaScript中使用鴨子類型的優勢,同時使用C#中的介面和泛型。通過對介面、多重繼承和組合的充分理解,您將進一步重構現有程式碼,並將源代碼組織得易於維護和擴展。
《學習物件導向程式設計》將幫助您創建更好、更強大和可重複使用的程式碼。
您將學到什麼
- 在Python、JavaScript和C#三種程式語言中生成實例
- 自定義建構函式和解構函式
- 使用存取修飾詞、前綴、屬性、欄位、屬性和區域變數來封裝和隱藏數據
- 利用特化和重載或覆寫成員的可能性
- 創建可重複使用且易於維護的程式碼
- 在適用時使用介面、泛型和多重繼承
關於作者
Gaston C. Hillar從8歲開始就一直與電腦打交道。在80年代初,他開始使用傳奇的Texas TI-99/4A和Commodore 64家用電腦進行編程。Gaston擁有計算機科學學士學位,並以優異成績畢業。他還擁有MBA學位,並以優秀的論文畢業。目前,Gaston是一名獨立的IT顧問和自由作家,他一直在尋找世界各地的新冒險。
目錄
- 無處不在的物件
- 類別和實例
- 封裝數據
- 繼承和特化
- 介面、多重繼承和組合
- 鴨子類型和泛型
- 物件導向程式碼的組織
- 充分利用物件導向程式設計