









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Grade: Assessor Signature: Date: Internal Verifier’s Comments: Signature & Date:
Student Name/ID Number: Nguyen Ngoc Phu/GCS210 331 Unit Number and Title: Advanced Programming Academic Year: 2022 – 202 3 Unit Assessor: Nguyễn Văn Sơn Assignment Title: Issue Date: 1 August 2023 Submission Date: (^) 15 August 2023 Internal Verifier Name: Date: Submission Format: Format: The submission is in the form of a group written report. This should be written in a concise, formal business style using single spacing and font size 12. You are required to make use of headings, paragraphs and subsections as appropriate, and all work must be supported with research and referenced using the Harvard referencing system. Please also provide a bibliography using the Harvard referencing system. Submission Students are compulsory to submit the assignment in due date and in a way requested by the Tutors. The form of submission will be a soft copy in PDF posted on corresponding course of http://cms.greenwich.edu.vn/ Note: The Assignment must be your own work, and not copied by or from another student or from ● books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. Make sure that you know how to reference properly, and that understand the guidelines on plagiarism. If you do not,
Learning Outcomes and Assessment Criteria Pass Merit Distinction LO1 Examine the key components related to the object-orientated programming paradigm, analysing design pattern types P1 Examine the characteristics of the object-orientated paradigm as well as the various class relationships. M1 Determine a design pattern from each of the creational, structural and behavioural pattern types. D1 Analyse the relationship between the object-orientated paradigm and design patterns. LO2 Design a series of UML class diagrams P2 Design and build class diagrams using a UML tool. M2 Define class diagrams for specific design patterns using a UML tool. D2 Define/refine class diagrams derived from a given code scenario using a UML tool.
The object that is left is a representation of the original with unimportant information eliminated, similar to how abstraction might occasionally succeed in art. The final product itself is referred to as an abstraction, which is a named entity made up of chosen characteristics and behavior unique to a particular application of the originating entity. Data hiding and abstraction are related concepts. Figure 1 Abstraction
Encapsulation is a key idea in object-oriented programming (OOP), which entails grouping together data and the functions that work on it into a single entity called a class. Due to the restriction on direct access, this idea contributes to the protection of the data and procedures from outside interference. In order to prevent users from directly accessing all of an object's variables' state values, encapsulation is a technique for limiting direct access to some of the object's components. An instantiated class or object's data members and data functions or methods can both be concealed using encapsulation. P a g e | 2
Figure 2 Encapsulation
One of the fundamental ideas of object-oriented programming (OOP) languages is inheritance. It is a mechanism that enables you to create a hierarchy of classes that share a set of properties and methods by deriving a class from another class. In object-oriented programming, inheritance is a mechanism for basing an object or class on another object (prototype-based inheritance) or class (class-based inheritance), while maintaining a similar implementation. It can be used to link your domain model to a database, declare various exception types, and extend pre-existing frameworks with custom logic. Figure 3 Inheritence P a g e | 3
Explanation: This use case diagram shows the main functions of the library management application with a total of 2 Actors: Manager, staff and all use case which are function on a program named library manage. They are helpful for staff and manager to run a library easier. This software has 2 Actors: Staff and Manager. Staff can add new borrower and search for book and borrowers, edit tenant information, delete book and borrowers, search books by book ID, book title or author name, genre published date, description. Manager can add, delete books, Edit book information, show all books or show all borrowers for convenience in managing books as well as tenants. In addition, staff can also display all books and shoppers to easily check when there is a request from a customer P a g e | 5
Explanation: This system has 5 class: Menu Program Library Manager Book Borrowers class Menu to display options so that users can interact with the system more easily. class LibraryManager is where the main function's methods are stored. class book to store the book's information. class borrowers to store the borrower's information class Program to run the system P a g e | 6