0% found this document useful (0 votes)
84 views

Assignment No 1 DP-LAB

This document provides instructions for a design patterns assignment with 4 questions. Students are asked to define design patterns, their types and usage examples. They should also implement object-oriented concepts in Java like inheritance, polymorphism, abstraction, encapsulation and exception handling with examples. Additionally, students are to explain object creation methods, association, composition, aggregation and inner classes with examples. Finally, they must implement and explain examples of Abstract Factory, Factory, Singleton, Builder and Prototype design patterns with UML diagrams. The assignment aims to develop understanding of software design fundamentals and documentation.

Uploaded by

Muhammad Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

Assignment No 1 DP-LAB

This document provides instructions for a design patterns assignment with 4 questions. Students are asked to define design patterns, their types and usage examples. They should also implement object-oriented concepts in Java like inheritance, polymorphism, abstraction, encapsulation and exception handling with examples. Additionally, students are to explain object creation methods, association, composition, aggregation and inner classes with examples. Finally, they must implement and explain examples of Abstract Factory, Factory, Singleton, Builder and Prototype design patterns with UML diagrams. The assignment aims to develop understanding of software design fundamentals and documentation.

Uploaded by

Muhammad Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Design Patterns

BSSE- Computer Science Department


Lab Instructor: Muhammad Shoaib
[email protected]

Assignment # 01
20 Marks

Instructions:
✓ Due Date: Mar 5, 2021 11:00 AM (Late submissions would not be entertained).
✓ Viva of each question will conduct at the time of submission so please make yourself your complete
assignment. Submit as Soft and Hard Copy
✓ It should be clear that in case of copying; all parties involved in the copy case will be graded “ZERO”.
✓ Your efforts will be appreciated (Read the book and search on google to make easily!)
Purpose of Assignment:
The objective of this assignment is to gain basic concepts about software design fundamentals and software
documentation. This assignment will cover both theoretical and practical aspects.

Question No 1:
What are the Design Patterns? Why we use design patterns and when to use in Software development
Life Cycle? What are Different Types of Design Patterns Categories name each of them with real time
usage example.

Question No 2:
Implement Object Oriented basic concepts following concepts using java programming
language in separate project packages and Use five keywords in your implementation
with real time examples:
- Inheritance and it’s all types
- Polymorphism through two different ways
- Abstraction using interfaces and abstract classes
- Data Encapsulation using any application-level example
- Function Overriding and Function Overloading
- Exception Handling in package level
- File Handling and Serialization
- Object Oriented key words in java
Question No 3:
What are the different ways of object creation? What is Association, Composition, and
aggregation? What are inner classes? Implement all types with real time examples.

Question No 4:
Design Patterns are the general usable solution for commonly occurring problem in
software Design and Development. Implement each of the following pattern with UML
and real time example and comments.
- Abstract Factory Pattern
- Factory Pattern
- Singleton Pattern
- Builder Pattern
- Prototype Pattern

You might also like