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