Chapter III. Object-oriented programming in C++ (Chapter III) (Chương III. Lập trình hướng đối tượng trong C++) - Trương Công Tuấn
Tài liệu trình bày về lập trình hướng đối tượng trong C++, bao gồm các khái niệm như lớp, đối tượng, kế thừa, đa hình và các nguyên lý cơ bản của OOP như đóng gói, che giấu dữ liệu.
プレビューを生成中...
TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI KỸ THUẬT LẬP TRÌNH HỆ CƠ ĐIỆN TỬ Programming Engineering in Mechatronics Giảng viên: TS. Trương Công Tuấn Đơn vị: Bộ môn Cơ điện tử, Viện Cơ khí 1 Chapter III. Object-oriented programming in C++ Introduction to the object-oriented world Classes and objects Inheritance (derivation) Polymorphism Class templates 2 Chapter III. Object-oriented programming in C++ Introduction to the object-oriented world Classes and objects Inheritance (derivation) Polymorphism Class templates 3 Introduction to the object-oriented world Basics Basic principles An object-oriented example code 4 Introduction to the object-oriented world Basics Class A class determines the abstract features of a thing (object), including its features (attributes, fields, properties) and its behaviour (what the thing can do, methods, operations and functions). We can say that a class is a scheme describing the nature of something: the class Truck has to contain the common properties of trucks (manufacturer, engine, brake system, maximum load etc.), as well as their specific behaviour, like braking, turning to left etc. Both the integrated properties and the methods of a class are called class members (data member and member function in C++). 5 Introduction to the object-oriented world Basics Object An object is a scheme (an example) of a class: the class Truck has the feature brake system, but the brake system of the object myCar can be an electronicallycontrolled one (EBS) or a simple air brake. Instance The notion of instance (of a class) is synonymous with the notion of object. Instance means an actual object created at runtime: myCar is an instance of the class Truck. The set of the property values of the actual object is called the state of that object. 6 Introduction to the object-oriented world Basics Method Methods are responsible for the capabilities of objects: the methods of myCar:
… 完全なドキュメントを読むには、元のファイルをダウンロードしてください。
- ドキュメント名
- Chapter III. Object-oriented programming in C++ (Chapter III) (Chương III. Lập trình hướng đối tượng trong C++) - Trương Công Tuấn
- 学校 / コース
- Đại học Bách khoa Hà Nội · Kỹ thuật lập trình trong Cơ điện tử
- 内容
- Tài liệu này cung cấp kiến thức nền tảng về lập trình hướng đối tượng (OOP) trong C++, tập trung vào các khái niệm cốt lõi như lớp, đối tượng, kế thừa, đa hình và đóng gói. Nó giải thích các nguyên tắc cơ bản và minh họa cách chúng hoạt động.
- 目次
- Chapter III. Object-oriented programming in C++
- Introduction to the object-oriented world
- Classes and objects
- Inheritance (derivation)
- Polymorphism
- Class templates
- ページ数
- 152 ページ
- アップロード者
- Giang Le
よくある質問
このドキュメントは無料ですか?
はい。「Chapter III. Object-oriented programming in C++ (Chapter III) (Chương III. Lập trình hướng đối tượng trong C++) - Trương Công Tuấn」は無料です。ログインして「ダウンロード」をクリックするだけで、元のファイルを取得できます。
このドキュメントは何ページありますか?
このドキュメントは 152 ページあります(Kỹ thuật lập trình trong Cơ điện tử コース用)。ダウンロードする前にオンラインでプレビューできます。
ダウンロードする前にプレビューできますか?
はい。このページにあるオンラインリーダーでドキュメントをプレビューし、その後ダウンロードするかどうかを決めることができます。

コメント (0)
まだコメントはありません。最初のコメントを書きましょう!