Object-oriented programming in C++
暫譯: C++ 物件導向程式設計
Tatyana Sopronyuk
- 出版商: CreateSpace Independ
- 出版日期: 2014-09-26
- 售價: $950
- 貴賓價: 9.5 折 $903
- 語言: 英文
- 頁數: 130
- 裝訂: Paperback
- ISBN: 1502520907
- ISBN-13: 9781502520906
-
相關分類:
C++ 程式語言、Object-oriented
無法訂購
商品描述
The textbook is intended to be used in the computer science course of “Object-oriented programming in C++”. It contains all the information needed for completing assignments and labs. The textbook consists of 5 parts. At first we consider the possibilities of C++, which did not exist in the language C and which don’t refer directly to the notion of classes, in particular, stream input/output, operators of dynamic allocation of memory and setting it free, overloading of functions, template functions. Further, we passed over from the notion of structure in the language C to the notion of the class. We described the operations of the construction of the class and its elimination, static members of the class, friendly functions, interface and realization of the class, overloading of operators for the objects of the given class, templates of classes and friendly ones. We have also considered means of using created classes (aggregation and inheritance) for the extending possibilities of existing classes and the notion of the base and derivative classes, multiple inheritance, building of the hierarchy of classes, usage of virtual functions, abstract classes, polymorphic functions, virtual inheritance. In every part of the textbook we have given examples of programs with comments, demonstrating suggested theoretical material. Every part ends with the questions for self-control and tasks for independent work with the demonstrated programs. At the end of the textbook we have introduced the mandatory assignments for the course OOP in C++. In order to help the students the textbook demonstrates codes of similar programs for all the types of assignments. This textbook is intended for educational purposes.
商品描述(中文翻譯)
本教科書旨在用於「C++物件導向程式設計」的計算機科學課程。它包含完成作業和實驗所需的所有資訊。教科書分為五個部分。首先,我們考慮C++的可能性,這些在C語言中並不存在,且不直接涉及類別的概念,特別是流的輸入/輸出、動態記憶體分配和釋放的運算子、函數的重載、模板函數。接著,我們從C語言中的結構概念轉向類別的概念。我們描述了類別的建構和消除操作、類別的靜態成員、友元函數、類別的介面和實現、針對給定類別的物件的運算子重載、類別模板和友元模板。我們還考慮了使用創建的類別的手段(聚合和繼承),以擴展現有類別的可能性,以及基類和衍生類別的概念、多重繼承、類別層次結構的建立、虛擬函數的使用、抽象類別、多型函數、虛擬繼承。在教科書的每個部分,我們提供了帶有註解的程式範例,展示所建議的理論材料。每個部分結尾都有自我檢測的問題和獨立工作的任務,與展示的程式相結合。在教科書的最後,我們介紹了C++物件導向程式設計課程的必修作業。為了幫助學生,教科書展示了所有類型作業的類似程式碼。這本教科書旨在用於教育目的。