1 |P a g eASSIGNMENT 1QualificationTEC Level 5 HND Diploma in ComputingUnit number and titleUnit 20: Advanced ProgrammingSubmission dateTuesday, May 4, 2021Date Received 1stsubmissionRe-submission DateDate Received 2ndsubmissionStudent NameVu Hoang HaStudent IDGCH18484ClassGCH0802Assessor nameDoan Trung TungStudent declarationI certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand thatmaking a false declaration is a form of malpractice.Student’s signatureGrading gridP1P2M1M2D1D2
2 |P a g eSummative Feedback:ResubmissionFeedback:Grade:Assessor Signature:Date:Lecturer Signature:
3 |P a g eASSIGNMENT 1Advanced ProgrammingPerformed byVu Hoang Ha–GCH18484Nguyen Van Duc–GCH198088Phan Bao Hoang–GCH190102
4 |P a g eTable of Contents1Introduction............................................................................................................................................62OOP general concepts............................................................................................................................62.1Object and Class in OOP..................................................................................................................6a) Object.................................................................................................................................................6b) Class....................................................................................................................................................62.2Encapsulation...................................................................................................................................72.3Inheritance.......................................................................................................................................72.4Abstraction.......................................................................................................................................72.5Polymorphism..................................................................................................................................72.6Constructor......................................................................................................................................82.7Properties........................................................................................................................................82.8Access modifier................................................................................................................................83OOP scenario..........................................................................................................................................93.1Scenario...........................................................................................................................................93.2Use case Diagram...........................................................................................................................103.3Class Diagram.................................................................................................................................114Design Patterns....................................................................................................................................114.1Creational pattern.........................................................................................................................114.2Structural pattern..........................................................................................................................134.3Behavioral pattern.........................................................................................................................145References............................................................................................................................................17
5 |P a g eList of FigureFigure 1. Example of the difference between class and object.....................................................................7Figure 4. Example for Publishers + Subscribers = Observer Pattern............................................................15List of DiagramDiagram 1. Use case.....................................................................................................................................10Diagram 2. Class diagram of OOP.................................................................................................................11Diagram 3. Class digram of Factory Method................................................................................................13Diagram 4. Class diagram of Facade Pattern................................................................................................14Diagram 5. Class diagram of Observer pattern............................................................................................16
6 |P a g e1IntroductionIn this report, the team will carry out discussions about OPP (Object-Oriented Programming) and thedifferent class relationships of OOP. Our team will then proceed to build an OOP scenario with the exampleof a commercial e-site that includes a Use case diagram and a class diagram along with an explanation.Finally, our team will discuss design patterns including Creational, Structural, Behavioral with theirintroduction, scenario description, and diagram along with detailed explanations.2OOP general conceptsOOP is also known as Object-Oriented Programming. OOP is a common term and it is also a very importantand much-used programming technique today. OOP is a programming technique that allows programmersto design and develop software based on class and object architecture. In object-oriented programming,each programmer's program will have several objects that can interact with each other, belonging todifferent classes, and each object will manage its own data (Attvater, 2017).2.1Object and Class in OOPa) ObjectAn object is a software that includes related properties and methods. Specifically, an object consisting of2 information is attributes and methods. Example "Student":(Attributes) are the information and characteristics of the subject: full name, age, score, ...
Upload your study docs or become a
Course Hero member to access this document
Upload your study docs or become a
Course Hero member to access this document
End of preview. Want to read all 17 pages?
Upload your study docs or become a
Course Hero member to access this document