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.
- [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
Skill Level Intermediate
2. Factory Method
3. Abstract Factory
4. Singleton Pattern
5. Decorator Pattern
6. Iterator Pattern
7. Observer Pattern
8. Repository Pattern
9. Unit of Work Pattern
Convert to Unit of Work3m 53s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.