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

preview_player
Показать описание
#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:

Follow me on Social network:

KK JavaTutorials WebSite:

Subscribe KK JavaTutorails YouTube Channel:

Subscribe My Hindi Channel(KK HindiGyan):

Some Important Playlist link on KK JavaTutorials:

Spring Framework Tutorial:

Eclipse shortcuts :

Java 8 Features Tutorial(All In One):

JDBC Tutorial in depth[Must Watch]

Java 8 Stream APIs:

WebLogic Server Tutorials:

Spring Boot Tutorial(All In One):

Hibernate Tutorials:

Java 5 new features Tutorials

Java 7 Features tutorials:

Java multithreading for beginners:

Java Collections framework Tutorials:

OOPs concepts in java Tutorials:
Рекомендации по теме
Комментарии
Автор

I found this really really helpful, thank you.

richardwilkins
Автор

nyc waiting for strategy Design Pattern and instead of taking laptop computer take real example like payment startegy

vikasbhardwaj
Автор

Abstract factory is all about family of products like a kit, that part is not explained here

akjoker
Автор

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

pratapjavasingh
Автор

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.

thehappydeveloperguide
Автор

Your constructors are overloaded with params. Why dont you use builder in it ? Your code will be much cleaner

PardeepKumar-hmmn
Автор

I am unable to find the source code of this program. can you pls share me a specific link?

rajnishBaflipara
Автор

its so bad that you do not publish your github links

abhimanyukumar-wlfj
Автор

You explained factory method pattern not abstract factory

anianand
Автор

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.

shankar