Abstract Factory Design Pattern

  Рет қаралды 136,036

kudvenkat

kudvenkat

Күн бұрын

Text version of the video
csharp-video-tu...
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our KZfaq channel. Hope you can help.
/ @aarvikitchen5572
Slides
csharp-video-tu...
Design Patterns Tutorial playlist
• Design Patterns tutori...
Design Patterns Text articles and slides
csharp-video-tu...
All Dot Net and SQL Server Tutorials in English
www.youtube.co...
All Dot Net and SQL Server Tutorials in Arabic
/ kudvenkatarabic
In this session we will learn
1. What is Abstract Factory Design Pattern
2. Implementation Guidelines
3. Abstract factory implementation
4. Differences between Factory Method and Abstract Factory Pattern
What is Abstract Factory Design Pattern
Gang Of Four Definition : "The Abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes"
The Abstract Factory Pattern provides an interface for creating families of related or dependent objects without specifying their concrete classes
Abstract Factory pattern belongs to creational patterns and is one of the most used design patterns in real world applications
Abstract factory is a super factory that creates other factories
Implementation Guidelines
We need to Choose Abstract Factory Pattern when
1. The application need to create multiple families of objects or products
2. We need to use only one of the subset of families of objects at a given point of time
3. We want to hide the implementations of the families of products by decoupling the implementation of each of these operations
Business Requirement : Handout computers to Contract and Permanent employees based on the designation and employee type with below specifications
Permanent Employee
1. Managerial Position is eligible for Apple MAC Book Laptop
2. Non Managerial Position is eligible for Apple IMac desktop
Contract Employee
1. Managerial Position is eligible for Dell Laptop
2. Non Managerial Position is eligible for Dell desktop
Abstract Factory Representation
1. Client is a class which use AbstractFactory and AbstractProduct interfaces to create a family of related objects.
2. AbstractFactory is an interface which is used to create abstract product
3. ConcreteFactory is a class which implements the AbstractFactory interface to create concrete products.
4. AbstractProduct is an interface which declares a type of product.
5. ConcreteProduct is a class which implements the AbstractProduct interface to create product.
Difference between Abstract Factory and Factory Method
1. Abstract factory pattern adds a layer of abstraction to the factory method pattern
2. Abstract factory pattern implementation can have multiple factory methods
3. Similar products of a factory implementation are grouped in Abstract factory
4. Abstract Factory uses object composition to decouple applications form specific implementations
5. Factory Method uses inheritance to decouple applications form specific implementations

Пікірлер: 47
@chandanasoundararajan8790
@chandanasoundararajan8790 3 жыл бұрын
you explains very well for singleton and factory pattern. But starting from Factory method pattern you stopped explaining at all why you are doing this. you just saying loud what you are typing and running the program. please give appropriate reason for why you are doing all this operations. it will be helpful for us in preparing for interviews.
@rsdntevl
@rsdntevl 7 жыл бұрын
Really great example, most tutorials stop at the if/else statement for creating the concrete product. Connecting with the front end form made much more sense!
@sanjeevgaur1973
@sanjeevgaur1973 6 жыл бұрын
You didn't explain how come you immediate decided abstract pattern for this requirement? There should be some thought process which must be explained before start.
@rvnl0rd
@rvnl0rd 5 жыл бұрын
It provides an abstract interface for creating many different Computer objects (depending on an Employee property values) while the creation itself is left to the respective conrete factories corresponding to the conrete computers. Factory itself corresponds to a SINGLE variant - this way the client (manager) by using single 'interface' can indirectly work with different objects (computers) and remain compatible with all of them.
@govindarajkrishnan1933
@govindarajkrishnan1933 6 жыл бұрын
Hi Aviash You did a great job. It was wonderful video, you explained very clear and neatly. Now its easy to understand anyone have knowledge in the programming. Good job. Keep up the good job. Thanks again.
@HippieInHeart
@HippieInHeart 2 жыл бұрын
Very good videos, my colleague recommended them to me and I already start to understand much more. Thanks for the very good and easy to understand explanations.
@deepthireddy3267
@deepthireddy3267 5 жыл бұрын
Thanks for the patience and explanation. I have been struggling from years to understand diff between factory and abstract factory. Now it's clear ☺
@enghazymeh9921
@enghazymeh9921 7 жыл бұрын
this is the best video tutorial in the youtube that explain this design pattern in a clear way , alot of thanks bro
@trustingod0
@trustingod0 5 жыл бұрын
I notice that you dont reply to comments. Also I noticed you used interface. Do we use abstract classes with the Factory Method. If so I was wondering why? Thanks for your help !
@abhi80ind
@abhi80ind 6 жыл бұрын
Please illustrate UML diagram of your example before jumping to Implementation.
@satyammishra30
@satyammishra30 3 жыл бұрын
uffff that was a long ride. i am tried now.. bye
@Me.anything
@Me.anything 4 жыл бұрын
All he is doing is just keep adding interfaces and classes without any explanation.
@vejay369
@vejay369 3 жыл бұрын
Is your computer audio working?
@hemantgaikwad3352
@hemantgaikwad3352 3 жыл бұрын
@@vejay369 yes
@vejay369
@vejay369 3 жыл бұрын
@@hemantgaikwad3352 wasn't asking you geekwad
@afsaraf1533
@afsaraf1533 6 ай бұрын
Does people use this complex implementation in their projects🫡
@madhugowda8732
@madhugowda8732 4 жыл бұрын
its little bit confusing ...
@sunnydeck3954
@sunnydeck3954 7 жыл бұрын
Thanks for the video. Please make video for Repository pattern,Builder Pattern, Iteratory Pattern, Decorator Pattern
@naodagere8210
@naodagere8210 4 жыл бұрын
Thank you so much!Good job.
@sailutummuru7343
@sailutummuru7343 6 жыл бұрын
Thanks for making this video. But lot of confusion. Not understand very well...
@aaronaaronaaron5922
@aaronaaronaaron5922 6 жыл бұрын
you are cool, Avish!
@venkateshgupta5219
@venkateshgupta5219 4 жыл бұрын
Excellent video
@akhilarao6668
@akhilarao6668 4 жыл бұрын
Please be clear while explaining .u r are not very clear u r just adding this class that class it would be better if u can relate something real-time then go to business requirements .and also it would be lil clear if u briefly summarize of wat u have done in the whole video at last
@nagarjunapappula8139
@nagarjunapappula8139 6 жыл бұрын
I don't understand... only understand adding new items 😂
@79manindar
@79manindar 7 жыл бұрын
Sir, I am a. NET Developer just because of your videos, Please make a video series on MSBI.
@kamdemkakengne
@kamdemkakengne 7 жыл бұрын
Thanks a lot for the video !
@8uddishh
@8uddishh 6 жыл бұрын
I understand the simplicity part of it, and it should cover beginners... Albeit that being said please do not use methods in interfaces when a property can be used... thanks
@harikrishna-gr8uz
@harikrishna-gr8uz 6 жыл бұрын
Very much helpful
@sumersinghrana8868
@sumersinghrana8868 7 жыл бұрын
Thanks for the video
@rahulsharmanew1
@rahulsharmanew1 3 жыл бұрын
Interface are by default public why we need to make interface public at 19.50?
@dharmendrasharma3137
@dharmendrasharma3137 7 жыл бұрын
Thanks alot sir..
@begelmanleonid6754
@begelmanleonid6754 Жыл бұрын
"GetSystemDetails" can be also a method of the IComputerFactory, than you dont need the EmployeeSystemManage
@raqibul1000
@raqibul1000 7 жыл бұрын
Thanks a Billions.
@MrKaviraj75
@MrKaviraj75 4 жыл бұрын
looks tedious and slept in the middle of the video :D
@codeintermediate4529
@codeintermediate4529 4 жыл бұрын
Abstract factory pattern has been explained well in this video too - kzfaq.info/get/bejne/fsmom9Vy1qvZm5c.html
@mrinal2100
@mrinal2100 8 ай бұрын
Half of the time he was coding and I got lost in multiple classes.
@MrAamir33
@MrAamir33 3 жыл бұрын
Avesh you are mostly reading from slides, & not explaining even if we go by your videos I am not sure whether i would be able to remember the concept or not.
@dgroh
@dgroh 3 жыл бұрын
It was all good until the mess with IFs in the end =D
@eliavmaman3203
@eliavmaman3203 5 жыл бұрын
"IComputerFactory factory= new SystemEmployeeFactory (employee)" ?!?!?!?!!? WTF?????
@pedroreisbr
@pedroreisbr 3 жыл бұрын
This class and this example is so bad, worst way to explain this concept. Must have confused a lot of people.
@abidalisidd
@abidalisidd 2 жыл бұрын
Its true
@RajeshYadav-tr1sr
@RajeshYadav-tr1sr 3 жыл бұрын
why kud not made this video?? this guy is time waste...wasted time
@ashutoshsingh7713
@ashutoshsingh7713 3 жыл бұрын
Not for beginners 💯✔
@kashishsingh4324
@kashishsingh4324 5 жыл бұрын
not for beginers
Builder Design Pattern Introduction
13:45
kudvenkat
Рет қаралды 66 М.
Factory Method Design Pattern
20:06
kudvenkat
Рет қаралды 142 М.
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 5 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 42 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 42 МЛН
Factory Method Pattern - Design Patterns (ep 4)
27:21
Christopher Okhravi
Рет қаралды 541 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 244 М.
Factory Pattern in C#: Creating Objects with Ease
12:54
campbelltech
Рет қаралды 13 М.
Factory Design Pattern Introduction
22:43
kudvenkat
Рет қаралды 276 М.
Design Patterns: Factories
25:26
Microsoft Visual Studio
Рет қаралды 54 М.
Abstract Factory Pattern - Design Patterns in C#
10:23
Full-Stack Dev
Рет қаралды 12 М.
8 Design Patterns EVERY Developer Should Know
9:47
NeetCode
Рет қаралды 1 МЛН
Repository Pattern with C# and Entity Framework, Done Right | Mosh
26:24
Programming with Mosh
Рет қаралды 869 М.
Low Battery 🪫
0:10
dednahype
Рет қаралды 518 М.
ПС 110/10. Кто то подключил "левак" 110000 вольт!?
0:34
Советы электрика
Рет қаралды 704 М.
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 3,6 МЛН
Nokia 3310 top
0:20
YT 𝒯𝒾𝓂𝓉𝒾𝓀
Рет қаралды 4,9 МЛН
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 1,4 МЛН