Bài giảng Kiến trúc phần mềm - Chương: Mẫu thiết kế Creational Patterns - Trần Minh Triết
Trường Đại học Khoa Học Tự Nhiên
Khoa Công Nghệ Thông Tin
Bộ môn Công Nghệ Phần Mềm
CTT526 - Kiến trúc phần mềm
Mẫu thiết kế
Creational Patterns
PGS.TS. Trần Minh Triết
Version 1.0
Mở đầu
Ý tưởng về mẫu thiết kế
Sự ra đời của ý tưởng về mẫu thiết kế
23 mẫu thiết kế của nhóm GoF
Nhóm Creational Pattern
Nhóm Behavioral Pattern
Nhóm Structural Pattern
Một số quan điểm về cách vận dụng mẫu thiết kế
…
…
Một số nguyên lý cơ bản của lập trình hướng đối tượng
2
Mẫu thiết kế trong nhóm
Creational Pattern
Mẫu Factory
Mẫu Abstract Factory
Mẫu Builder
Mẫu Prototype
Mẫu Singleton
12/09/201
2
3
Mẫu Factory
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
4
Software, Addison-Wesley]
Mẫu Factory
12/09/201
2
5
[Christopher G. Lasater (2007). Design Patterns, Wordware Publishing, Inc.]
Mẫu Factory
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
6
Software, Addison-Wesley]
Mẫu Factory
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
7
Software, Addison-Wesley]
Mẫu Factory
12/09/201
2
8
[Christopher G. Lasater (2007). Design Patterns, Wordware Publishing, Inc.]
Thảo luận
Trong những tình huống nào nên nghĩ đến mẫu
Factory?
Làm cách nào để xác định muốn tạo ra sản phẩm loại
nào từ Factory?
Làm cách nào để tạo lập một sản phẩm theo yêu cầu?
Các biến thể?
12/09/201
2
9
Mẫu Prototype
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
10
Software, Addison-Wesley]
Mẫu Prototype
12/09/201
2
11
[Christopher G. Lasater (2007). Design Patterns, Wordware Publishing, Inc.]
Mẫu Prototype
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
12
Software, Addison-Wesley]
Thảo luận
Trong những tình huống nào nên sử dụng mẫu
Prototype
Có phải chỉ sử dụng mẫu này trong quá trình tạo lập?
Những vấn đề khác?
12/09/201
2
13
Mẫu Builder
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
14
Software, Addison-Wesley]
Mẫu Builder
12/09/201
2
15
[Christopher G. Lasater (2007). Design Patterns, Wordware Publishing, Inc.]
Mẫu Builder
12/09/201
2
16
[Christopher G. Lasater (2007). Design Patterns, Wordware Publishing, Inc.]
Mẫu Builder
[Christopher G. Lasater (2007). Design Patterns,
12/09/201
17
Wordware Publishing, Inc.]
2
Mẫu Builder
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
18
Software, Addison-Wesley]
Thảo luận
Những tình huống nào nên dùng mẫu Builder?
Cách xây dựng các đối tượng thành phần?
Những vấn đề khác
12/09/201
2
19
Mẫu Abstract Factory
[Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). Design Patterns - Elements of Reusable Object-Oriented
12/09/201
2
20
Software, Addison-Wesley]
Tải về để xem bản đầy đủ
Bạn đang xem 20 trang mẫu của tài liệu "Bài giảng Kiến trúc phần mềm - Chương: Mẫu thiết kế Creational Patterns - Trần Minh Triết", để tải tài liệu gốc về máy hãy click vào nút Download ở trên
File đính kèm:
bai_giang_kien_truc_phan_mem_chuong_mau_thiet_ke_creational.pdf