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

Assignment 3

Object oriented assignment

Uploaded by

vikasbarker390
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)
8 views

Assignment 3

Object oriented assignment

Uploaded by

vikasbarker390
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/ 1

Faculty of Engineering

School of Information Technology


B. TECH Information Technology
VII Semester
Assignment 3
IT 4148 Object Oriented Design & Patterns
Instruction:

• Submit your answers as handwritten and scanned pdf document through following link on or
before 10 Dec 2024.

https://forms.office.com/r/5st8kwetQ7

1. Discuss the significance of CRC cards in the object-oriented design process. In what ways do
they enhance understanding and collaboration compared to contemporary design tools?
2. Examine the role of preconditions, postconditions, and invariants in the Programming by
Contract approach. How do these constructs contribute to building robust and reliable software
systems?
3. Contrast the Singleton and Flyweight design patterns. How do their distinct purposes and
implementations address resource optimization challenges in software development?
4. Analyze the key design considerations when selecting between the Factory Method and
Abstract Factory patterns. What specific scenarios make one pattern a better choice than the
other?
5. Evaluate the application of the Observer pattern in scenarios like event-driven architectures or
publish-subscribe systems. What difficulties might arise during its implementation, and how
can they be mitigated?
6. Create a use case for an online food ordering system, and design a corresponding CRC card to
represent one of its key components.
7. Develop a notification system using the Observer pattern, where users can subscribe to receive
updates about changes in weather conditions from a monitoring service.
8. Define a Java interface to model various payment methods (e.g., CreditCard, PayPal).
Implement at least two concrete classes that adhere to this interface, showcasing their
differences.

You might also like