Abstract Factory Design Pattern Implementation in Java ? || Design Pattern Interview Question

  Рет қаралды 10,666

KK JavaTutorials

KK JavaTutorials

4 жыл бұрын

#kkjavatutorials #DesignPatternInJava
About this Video:
Hello Friends,
In this we will learn What is Abstract Factory Design Pattern & how to implement this design pattern in Java with demo project?
Source code Link:
bit.ly/3f0Zop0
Follow me on Social network:
Facebook : / kkjavatutorials
Twitter : / kkjavatutorials
instagram : / kkjavatutorials
Google Plus:plus.google.co...
KK JavaTutorials WebSite:
kkjavatutorial...
Subscribe KK JavaTutorails KZfaq Channel:
/ kkjavatutorials
Subscribe My Hindi Channel(KK HindiGyan):
bit.ly/2AL1ub6
Some Important Playlist link on KK JavaTutorials:
Spring Framework Tutorial:
bit.ly/2F0Fltx
Eclipse shortcuts :
bit.ly/2QiL27j
Java 8 Features Tutorial(All In One):
bit.ly/2OnKmf5
JDBC Tutorial in depth[Must Watch]
bit.ly/2Ou5sso
Java 8 Stream APIs:
bit.ly/2RwPBek
WebLogic Server Tutorials:
bit.ly/2SIuV4x
Spring Boot Tutorial(All In One):
bit.ly/2P8PJ7f
Hibernate Tutorials:
bit.ly/2QiZI6r
Java 5 new features Tutorials
bit.ly/2SKCV59
Java 7 Features tutorials:
bit.ly/2ALPoP4
Java multithreading for beginners:
bit.ly/2PGIpyW
Java Collections framework Tutorials:
bit.ly/2zqeEs5
OOPs concepts in java Tutorials:
bit.ly/2QgUdF9

Пікірлер: 16
@richardwilkins5241
@richardwilkins5241 2 жыл бұрын
I found this really really helpful, thank you.
@BorisBorovski-mv8fl
@BorisBorovski-mv8fl 2 ай бұрын
Can't we put this instance class fields in some super class ? We have done a lot of code repeat. Btw I expect e.g. we can check what kind of OS we are running are return the type based on it, not to put the parameters by hand. Again how this is loose coupled, please explain ? The 'Factories" are dependant on the concrete implementations of "Laptop, Server, PC" and the AbstractComputerFactory depends on the factories implementations. Also uf we are in a real world scenario, we will have a form in the UI and we should populate all the parameters and we should say I want a server laptop or pc with this paramters ? Better implementation should be to check if we running macOS Linux or Windows OS and depend on this create and object for this system without populate all parameters. Again tomorrow we will have one more parameter and 100 products in the factory, and someone should copy paste everything everywhere for this property ? To summarize my question if you go to car dealer shop and tell them I want Mercedes AMG I will not tell them put that kind of breaks, put that kind of engine, put that kind of wheels I will expect to get the car directly without specifying anything.
@sleshashetye1566
@sleshashetye1566 3 жыл бұрын
Well explained.. thank you
@MrMikomi
@MrMikomi 4 жыл бұрын
Very good thank you. 👍
@akjoker79
@akjoker79 2 жыл бұрын
Abstract factory is all about family of products like a kit, that part is not explained here
@abhiny8
@abhiny8 Жыл бұрын
That's what I was wondering
@shankar7435
@shankar7435 6 ай бұрын
He made a mistake by not having different type of PCs, Laptops and servers. He missed the core of the pattern.
@studyfff6459
@studyfff6459 Жыл бұрын
thank you
@vikasbhardwaj1502
@vikasbhardwaj1502 4 жыл бұрын
nyc waiting for strategy Design Pattern and instead of taking laptop computer take real example like payment startegy
@pratapjavasingh3239
@pratapjavasingh3239 4 жыл бұрын
Startegy design patterns give u the three principles based on the requirements we can impliment to achieving the all the services loosely coupled like property file in spring Boot build the connection in data base not manually change configuration file
@pratapjavasingh3239
@pratapjavasingh3239 4 жыл бұрын
How do u know the group of another level of ur factory and here is required to impliment abstarct factory design patterns could u tell me is it possible then u can also relates the real time framework then here is involved abstarct factory design
@PardeepKumar-hm6mn
@PardeepKumar-hm6mn 3 жыл бұрын
Your constructors are overloaded with params. Why dont you use builder in it ? Your code will be much cleaner
@abhimanyukumar-wl8fj
@abhimanyukumar-wl8fj 13 күн бұрын
its so bad that you do not publish your github links
@rajnishBaflipara74051
@rajnishBaflipara74051 4 жыл бұрын
I am unable to find the source code of this program. can you pls share me a specific link?
@anianand9887
@anianand9887 2 жыл бұрын
You explained factory method pattern not abstract factory
@shankar7435
@shankar7435 6 ай бұрын
Very strength of this paytern is to not to bother client with new word, whereas in this video example client code is instantiating factory class and passing it to the higher level factory. 😂😂😂😂 Never use this example guys.
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 42 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 6 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 33 МЛН
Abstract Factory Pattern - Design Patterns (ep 5)
25:54
Christopher Okhravi
Рет қаралды 310 М.
What is the Factory Pattern? | Software Design Principles
26:48
Be A Better Dev
Рет қаралды 28 М.
How to Implement Builder Design Pattern in Java ? ||  Design Pattern
17:51
What is the Observer Pattern? (Software Design Patterns)
21:49
Be A Better Dev
Рет қаралды 21 М.