Assignment No 1 DP-LAB
Assignment No 1 DP-LAB
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