Object-oriented programming in C++
Tatyana Sopronyuk
- 出版商: CreateSpace Independ
- 出版日期: 2014-09-26
- 售價: $930
- 貴賓價: 9.5 折 $884
- 語言: 英文
- 頁數: 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++物件導向程式設計」課程的必修作業。為了幫助學生,教科書展示了所有作業類型的相似程式碼。這本教科書僅供教育用途。