How to use the Builder Pattern in Java - 035

preview_player
Показать описание
In this lesson I want to show you another technique for creating instances in Java using the builder pattern. We'll also discuss a bit about what patterns are, and some good techniques for designing your class builders.

Concepts: Java, classes, builder pattern in java, design patterns, java constructor chaining, constructors

Social Links: Don't hesitate to contact me if you have any further questions.

Related Videos:

Java Constructor Chaining - 034

Free Java Course Online

Media credits: All images are owned by DJ Spiess unless listed below:

Brick Background
Рекомендации по теме
Комментарии
Автор

one of the best java tutorials ever happens on youtube. I do respect on the way he explained with a real-world example.

maveasna
Автор

Think I finally get it because of the explanation on previous videos. Proper teaching.

drcl
Автор

ok. That is an ASAP subscribe. This is EXACTLY the next level I was looking after reading all the beginners tutorials in programming and feeling completely stable. Thumbs UP!

fares
Автор

Thank you sir im so stupid so im glad i have people like you to help me

imveryhungry
Автор

I see some comments claiming code doesn't work...slight mistake..blah blah..but what more important here is the way how the things are explained....this channel needs more attention..you got a new subscriber

anweshr
Автор

This video is a blessing, thanks (from Italy 🍕)!

marcoscaldaferri
Автор

Interesting, i read an article on DigitalOcean that suggested making the Game class have a private constructor and to make GameBuilder an inner static class. This way, the only way you can instantiate Game is to use the builder. Good video!

diehardwalnut
Автор

Subscribed! This was by far the most concise explanation I have seen.

downloader
Автор

Amazing tutorial. Why aren't you more well-known?

danielchoi
Автор

Thank you so much. You always explain the concept clearly. please never stop making videos.

sagaravhad
Автор

Really enjoyed this, easy to understand and follow. This really helped me understand the builder patterns used by the Android Pay API. Thank you!!

sergioangel
Автор

once a great explanation always a great explanation .. even after 5 years :)

raviranger
Автор

Awesome tutorial! Focused on particular problem and it's solution.

kumarsantoshdash
Автор

Awesome! Loved it, just subscribed and like the video. Thanks.

nomanghous
Автор

great tutorial!! greetings from Mexico.

luisfvm
Автор

Thanks for the video. One thing to note here is that we create an Instance or Object of a class, not creating a class.

mouradbarakat
Автор

Great video. BTW can you provide us with a tutorial how to use builder pattern extending a class, please ?

georgievvladimir
Автор

Awesome Explanation ! just subscribed and like the video. Thanks.

Would be great help, if you could provide similar video tutorial on other patterns and principles as well .

dpkjainsaw
Автор

Maybe I discovered a slight mistake here.

4:16 All the properties of the GameBuilder class are private

4:44
awayTeam = builder.awayTeam;
homeTeam = builder.homeTeam;
etc...


Wut?

Maztergyl
Автор

Is there any problem if I have more constructors? I mean... a Full constructor with all parameters, an empty Constructor and a Contructor with the builder approach?

LucasLopesdoAmaral