The Prototype Pattern Explained and Implemented in Java | Creational Design Patterns | Geekific

  Рет қаралды 59,078

Geekific

Geekific

Күн бұрын

Пікірлер: 35
@anime4u568
@anime4u568 3 жыл бұрын
so many informations in just 7 min amazing job man . i have to rewatch it again and again to take the most out of it . thanks for your time sir really amazing series
@geekific
@geekific 3 жыл бұрын
Awesome, glad you are enjoying the series
@The_Ashwatthama
@The_Ashwatthama 4 ай бұрын
i have rewatched so many times to make sure i have comprehend whats in the 8 mins :). Seasonal devs might grasp quick. Crisp and highly informative videos! thanks.
@empathetic24671
@empathetic24671 5 ай бұрын
It is a superb content. It took me 4-5 time of rewatch but now my concepts are clear. Thanks man
@tulasidamarla
@tulasidamarla 8 ай бұрын
Wonderful. Now I understood that Java's Cloneable interface is nothing but prototype design pattern. When I read about Cloneable from Effective Java book, I didn't realise that this is prototype design pattern. Thank you very much @Geekific. I have observed one difference. With Cloneable instead of calling super class's copy constructor, it invokes super.clone()
@pavelsavelev2560
@pavelsavelev2560 2 жыл бұрын
honestly your explantions are amazing
@geekific
@geekific 2 жыл бұрын
Thanks a lot! Glad you are enjoying our videos :)
@guljamalzim
@guljamalzim 3 жыл бұрын
Very well explained. Thanks.
@geekific
@geekific 3 жыл бұрын
Glad you liked it! :)
@architectureflashlight369
@architectureflashlight369 2 жыл бұрын
Deep, precise, and clear explanation. Thank you
@geekific
@geekific 2 жыл бұрын
Glad you think so! Thank you :)
@miaougrrpaw
@miaougrrpaw 2 ай бұрын
Thanks u, you saved my life
@yatri6329
@yatri6329 2 жыл бұрын
How we are setting value of Class attribute in registery the attribute of Car class is private and there is no setters u have shown???
@geekific
@geekific 2 жыл бұрын
Yes you are right :) This video is about explaining the the ideas behind the Prototype Pattern, and what you mentioned is an implementation detail, that is why I figured it wasn't necessary to show every single class created! Hope this answers your question!
@yatri6329
@yatri6329 2 жыл бұрын
@@geekific understood, So i did according u mentioned can u check my code if i send u over mail or as u suggest.
@TechOnScreen
@TechOnScreen 2 жыл бұрын
what does super(car) do. time : 5:47
@geekific
@geekific 2 жыл бұрын
It calls the constructor of its parent class.
@TechOnScreen
@TechOnScreen 2 жыл бұрын
can we do prototyping for differnt type of objects , suppose one is 'Fruit ', other is 'FruitDTO'
@geekific
@geekific 2 жыл бұрын
I am not sure I got the question :(
@haithemnasri7210
@haithemnasri7210 2 жыл бұрын
Well we're not talking about cloning in this case, its *converting* !! You have to create a convertToDto method in your fruit class to convert fruit entity to dto Or create a FruitConverter class (preferably a singleton) that has two methods: convertToFruitEntity & convertToFruitDto
@TechOnScreen
@TechOnScreen 2 жыл бұрын
@@haithemnasri7210 thanks
@o.fm.a5573
@o.fm.a5573 Жыл бұрын
I find the code in this video extremely confusing. Im having problems relating the spoken information to the written information D:
@geekific
@geekific Жыл бұрын
Sorry to read that! Let us know which parts were confusing so we can try and help you!
@deepkiran7249
@deepkiran7249 Жыл бұрын
how are fields immutable when there is no final keyword there ??
@geekific
@geekific Жыл бұрын
Hey! You may be mixing a couple Java concepts here! Please take a look at these videos: kzbin.info/www/bejne/Zl6XYoaDpLuSiqM & kzbin.info/www/bejne/lZXVf5aCjMyIoqc and let me know if you still have this question :)
@رياحالهاشمية
@رياحالهاشمية Жыл бұрын
شكرا
@mangosayed1453
@mangosayed1453 3 жыл бұрын
perfect
@geekific
@geekific 3 жыл бұрын
Thank you!
@Matelight_Repetition
@Matelight_Repetition Жыл бұрын
I didn't know that object of the same class can access the private fields of another object of the same class
@geekific
@geekific Жыл бұрын
I am not sure I got you. Sorry!
@dadlord689
@dadlord689 2 жыл бұрын
Weird thing is that we trying to solve copying now... when arrays have Copy function, that just utilizes copy of data (memcopy) in RAM.
@geekific
@geekific 2 жыл бұрын
Hello! We are detailing and explaining the Prototype pattern as it figures in the GoF book :) Feel free to use it as you see fit!
@johantchassem1553
@johantchassem1553 10 ай бұрын
I think JavaScript works somehow this way
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
38C3 - Hardware hacking mit Bluetooth Low Energy
35:12
media.ccc.de
Рет қаралды 1,3 М.
10 Design Patterns Explained in 10 Minutes
11:04
Fireship
Рет қаралды 2,4 МЛН
Factory Method Pattern - Design Patterns (ep 4)
27:21
Christopher Okhravi
Рет қаралды 562 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН