In this second part of two videos, the code Reynald reviews focus on two areas. The first is the concrete implementation of the subject – Concrete subject. The second, he discusses the client portion of the code that executes the program to simulates notifications after tweets are made by two celebrities.
- [Voiceover] Okay, now we'll review the…concrete implementation of our iICelebrity obstraction…which was our subject.…Let's navigate to our Concrete subject folder,…and open up GClooney.…So this class, GClooney, implements ICelebrity.…The first thing that you'll notice is that…I have a collection that I set up of fans,…and that's because we're going to be keeping track…of the fans that we add and remove.…
If we scroll down you'll see that there's…a method for AddFollower and RemoveFollower,…and those take in an IFan.…Now, moving back up, couple of things to point out.…1. We know we're going to keep track of our Tweets,…so I have a backing field, _tweet,…and a property for Tweet…with a getter and a setter, the getter simply returns…the Tweet, but the setter actually takes in…the current value of the Tweet and notifies our fans.…
If we navigate on Notify it brings us to our Notify method…and for the Notify method it takes in the Tweet as a…parameter, and then it iterates through the collection of…fans, and invokes for each one,…
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.