Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Xây dựng một số mẫu thiết kế trong C #
MIỄN PHÍ
Số trang
10
Kích thước
981.7 KB
Định dạng
PDF
Lượt xem
731

Xây dựng một số mẫu thiết kế trong C #

Nội dung xem thử

Mô tả chi tiết

Nguyễn Mạnh Đức Tạp chí KHOA HỌC & CÔNG NGHỆ 90(02): 77 - 86

77

BUILDING SOME DESIGN PATTERNS IN C#

Nguyen Manh Duc*

College of Education – TNU

SUMMARY

In software engineering, design is a total solution for common problems in software design.

Profound idea of the design is good saving solutions-oriented design and object re-use them to

solve similar problems. New object oriented language C#, Microsoft's influencemany of the

languages Java and C++. But there are still many new and interesting featureis introduced to

simplify the design of object-oriented. In this article we will consider building a number of designs

that Gamma has proposed language with C#.The purpose of the work here is to have an

insight than some designs can be implemented in C#, to learn the new features of the language in

practice and make it easier for designers object-oriented software.

Key words: Design Patterns, Singleton, Proxy, Abstract Factory, Strategy, UML

INTRODUCTION*

Object oriented programming has been the

dominating style in software development for

quite a few years. The intuitive way in which

object oriented languages allow us to divide

our code into objects and classes is what

makes this style of programming attractive.

Another aim of object oriented program

design is to make code more reusable.

However practical has shown that designing

reusable object oriented software is not

always that easy. A good software design

should, not only solve existing problems, but

also concern future problems. It should make

the program flexible, easy to maintain and to

update. Design patterns help us address these

issues. The idea is quite simple, we save

document and design solutions that have been

used and worked for reoccurring problems, in

order to use them again in similar situations.

In software engineering, a design pattern is a

total solution for common problems in

software design. A design pattern is not a

perfect design for can be converted directly

into code, it is only a framework describing

how to solve a problem that can be reused in

many different situations. The object oriented

design patterns typically show relationships

and interactions between classes or objects,

*

Tel: 0915 564 249; Email: [email protected]

without specifying the class or object of

each specific application.

The design can help speed up the process of

software development by providing

development patterns have been authenticated

and verified. It provides general solutions,

documented in a format that is not attached to

a particular problem. The model allows

developers to communicate with each other

using the name easy to understand, is widely

used to set for the interaction of software [1].

The aim of this work is to take a closer look

at how some of the known design patterns can

be implemented in C#, and to investigate

whether the new features of the language in

fact do make it easier to design object

oriented software.

After the introduction, section 2 will review

some of the designs represent the Gamma and

colleagues have proposed [1], we propose

how to design and build these templates in

C# and apply them in some real-world

problems; section 3 discusses some issues of

interest; Finally section 4 will include a

number of conclusions and future work.

DESIGN SOME PATTERNS IN C#

The designs are important building blocks for

design and modeling applications on all

platforms. The design helps us to

understand, discuss and re-use of applications

on aparticular platform. In [1] Gamma and

Số hóa bởi Trung tâm Học liệu – Đại học Thái Nguyên http://www.lrc-tnu.edu.vn

Tải ngay đi em, còn do dự, trời tối mất!