This video reviews code for setting up the core abstract factory and for Citi credit union. Specifically, we discuss the concrete factory & the method implementations involved to create the Citi loan accounts and Citi creating savings accounts. We also cover the concrete product implementation for both the loan and saving account for Citi.
- View Offline
- [Voiceover] I have a solution opened up that demonstrates…an abstract factory.…You can find it in your exercise folder…for this chapter.…I'm gonna walk through it and in this video,…I'd like to focus on the code written…leading up to writing the first factory,…CitiCreditUnion, and its products.…So if we flip back to our class diagram,…on the bottom left hand corner,…you'll see CitiCreditUnion Factory.…We're gonna show the code that leads…up to creating that particular class.…
Above it is abstraction ICreditUnionFactory.…We'll show the code that reflects that…in addition to, on the right hand side, is products.…ILoanAccount, ISavingsAccount,…and its concrete products,…CitiLoanAccount and CitiSavingsAccount.…So it's all about the Citi product…and Citi factory right now.…So I started off creating an abstract class,…and that's the ICreditUnionFactory.…
This factory has a couple of operations:…CreateSavingsAccount and CreateLoanAccount.…And each of them are going to be of a type…of ISavingsAccount for CreateSavingsAccount…
In this course, developer and technologist Reynald Adolphe explains the purpose and effective use of eight design patterns, including six Gang of Four design patterns and two .Net patterns. Gang of Four patterns fall under three categories: structural, creational, and behavioral. Reynald helps you learn about select patterns from each category. He describes each pattern and demonstrates how programmers can leverage them in real-world applications.
- Factory Method
- Abstract Factory
- Singleton pattern
- Decorator pattern
- Iterator pattern
- Observer pattern
- Repository pattern
- Unit of Work pattern