
KỸ THUẬT LẬP TRÌNH HỆ CƠ ĐIỆN TỬ
Programming Engineering in Mechatronics
1
TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI
Giảng viên: TS. Nguyễn Thành Hùng
Đơn vị: Bộ môn Cơ điện tử, Viện Cơ khí
Hà Nội, 2020

2
Chapter III. Object-oriented programming in C++
❖Introduction to the object-oriented world
❖Classes and objects
❖Inheritance (derivation)
❖Polymorphism
❖Class templates

3
Chapter III. Object-oriented programming in C++
❖Introduction to the object-oriented world
❖Classes and objects
❖Inheritance (derivation)
❖Polymorphism
❖Class templates

4
Introduction to the object-oriented world
❖Basics
❖Basic principles
❖An object-oriented example code

5
❖Basics
▪Class
•Aclass determines the abstract features of a 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.
•Both the integrated properties and the methods of a class are
called class members.
Introduction to the object-oriented world

