Factory Design Pattern

preview_player
Показать описание


MY UDEMY COURSES ARE 87.5% OFF TIL July 16th ($9.99)

Welcome to my Factory design pattern tutorial. This is a continuation of my design patterns video tutorial.

You use the Factory design pattern when you want to define the class of an object at runtime. It also allows you to encapsulate object creation so that you can keep all object creation code in one place.

The Factory pattern is presented in many ways to help you learn. Refer to the code to completely understand it.

►► Over 20 Hrs + 52 Videos + Quizzes + Graded Assignments + New Videos Every Week
Рекомендации по теме
Комментарии
Автор

Learn in One Videos for Every Programming Language

derekbanas
Автор

You use the Factory design pattern when you want to define the class of an object at runtime. It also allows you to encapsulate object creation so that you can keep all object creation code in one place.
The abstract pattern just makes more complex objects

derekbanas
Автор

This tutorial was made so long ago but is still so perfect

justintorre
Автор

I just wanted to say that when you outline the basic info in text in the beginning, that is extremely helpful. I'm the type of person who likes to get the gist of something aside from textbook descriptions, and those brief and concise intros are awesome. Thank you very much.

NC-psck
Автор

Thank you :) I'm planning on making an advanced algorithms tutorial that will be covered as I continue making Android tutorials. I'm planning on covering a bunch of topics other then Android over the next few months including C, C++, JEE Topics, Advanced Algorithms, Ruby and some random psychology topics people have been asking for

derekbanas
Автор

You're very welcome :) yes I covered facade. It is on my YouTube channel in the design patterns playlist

derekbanas
Автор

You're very welcome :) It is very nice to be able to help people all over the world. I'm glad you liked the video

derekbanas
Автор

Thank you :) I'm experimenting with new ways to teach so that information sticks in the brain. I'm glad you enjoy the videos.

derekbanas
Автор

Yes encapsulation and decoupling is the goal of the factory and many other patterns. I'm very happy to have helped :)

derekbanas
Автор

The best thing about your tutorials is that they are precise. That prevents any kind of confusion.. Sometimes I rewind a bit to pick the pace, but over all your lessons are very well imprinted in the viewer's mind.
Great Work!

sodatta
Автор

Thank you :) I have been think about covering Ruby because I don't think it would require a ton of videos to cover like java and c#. Ill try to add them soon to mix up the android series

derekbanas
Автор

Yes this is also called the factory method. The other factory pattern I cover is the abstract factory

derekbanas
Автор

I'm very happy that you've been able to use them with other languages! That's great

derekbanas
Автор

I'm glad you are enjoying the videos :)

derekbanas
Автор

You're very welcome :) A C++ tutorial is in the works and will be out very soon

derekbanas
Автор

Thank you :) I did my best to make the tutorials easy to grasp so they could be applied to other languages. Thank you for telling me I succeeded.

derekbanas
Автор

Thank you very much :) I'm constantly trying to improve. Thanks for the input

derekbanas
Автор

I am studying for an interview as a Senior Java Developer and I found these to be very helpful. I am sure I learned all this before but it is a nice refresher since I do not always use them every day at work and I have a bad memory. Thanks Derek, we really appreciate this service you provide.

Jehan
Автор

I'm very happy that you enjoyed it :) That was a little typo on my part. It would be better to say extends with the abstract class

derekbanas
Автор

Yes that is where the design patterns came from. They were great solutions for common problems that eventually people started writing down.

derekbanas