Learn How to Use Abstract Classes

  Рет қаралды 67,005

Amigoscode

Amigoscode

Күн бұрын

In this video you learn how to use java abstract classes.
Also, register your interest here for Amigoscode Bootcamp: amigoscode.hopp.to/bootcamp-r...
Don't Forget to
===========================================
💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
💯 Courses Available for free here - amigoscode.com/courses
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
#amigoscode #java #abstractclass
🙊 Here are the goods for all my videos video 🙊
► Recommended Books
===========================================
- Clean Code - amzn.to/2UGDPlX
- HTTP: The Definitive Guide - amzn.to/2JDVi8s
- Clean Architecture - amzn.to/2xOBNXW
► Computer and Monitor
===========================================
- New Apple MacBook Pro - amzn.to/3464Mmn
- Dell 27 INCH Ultrasharp U2719D Monitor - amzn.to/2xM3nW1
- Double Arm Stand Desk Mount - amzn.to/3aYKKfs
- USB C Hub Multiport Adapter - amzn.to/2Jz7NlL
► Camera Gear
=============================================
- Sony ILCE7M3B Full Frame Mirrorless Camera - amzn.to/346QIJn
- Sigma 16 mm F1.4 DC DN - amzn.to/2wbic3Q
- Sigma 33B965 30 mm F1.4 DC DC - amzn.to/39G37Fd
► IDE & Tools I use for coding 💻 🎒
===========================================
- ITerm
- VsCode
- GoLand
- IntelliJ Ultimate
- Sublime
P.S
===========================================
💯 Don't forget to subscribe | bit.ly/2HpF5V8
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
💯 Follow me on Instagram | bit.ly/2TSkA9w
❤️ Thanks for watching

Пікірлер: 119
@amigoscode
@amigoscode 2 жыл бұрын
Register your interest here for Amigoscode Bootcamp: amigoscode.hopp.to/bootcamp-register-interest
@michelchaghoury9629
@michelchaghoury9629 2 жыл бұрын
there is a problem with the link it gives an error page
@flyingrecordofficial
@flyingrecordofficial 2 жыл бұрын
Mashaallah bro
@flyingrecordofficial
@flyingrecordofficial 2 жыл бұрын
you smart work
@flyingrecordofficial
@flyingrecordofficial 2 жыл бұрын
@@michelchaghoury9629 Hi
@andrekreou1
@andrekreou1 2 жыл бұрын
I've already built the biggest part for my MSc thesis project because of you... Don't know how grateful I am for your contributions, not only for me but also to the developer community.
@TeslaDo
@TeslaDo 2 жыл бұрын
You may join the courses?
@meanstoandend
@meanstoandend 2 жыл бұрын
I very much appreciate and enjoy your content and the way you teach. I’ve been learning a lot from you and just wanted to say thanks for doing what you do 🙏
@moathdw910
@moathdw910 2 жыл бұрын
It's a fine content but he still always acts religious in a very annoying way, it would be better if he keeps his beliefs to himself and keep it professional
@meanstoandend
@meanstoandend 2 жыл бұрын
​@@moathdw910 when you grow up you'll realize a few things. First - just because someone is religious, doesn't mean they're acting religious. You're angry at something that literally isn't referenced or talked about in any of his videos. Just because he wears traditional clothing? Man - people still have a long way to go. Second - even if he did bring his religion into this, it's a good thing to get different perspectives from different people. Don't be so afraid of things that are different from you and maybe one day you'll be able learn all the world is willing to teach you.
@TeslaDo
@TeslaDo 2 жыл бұрын
​@@moathdw910 It is authentic way of professionalism. Change your vision, saying hello in Arabic does not make the content religious. I have never heard of anything about "create" action as a religious way. he also says "Voila!" which does not makes him a francophone
@hitstick567
@hitstick567 2 жыл бұрын
Could you do the same video but with interfaces? I feel like they have become more complex with each Java release. You seem to have such a great understanding of it
@MrBraga776
@MrBraga776 2 жыл бұрын
Would be great. He already said that programing oriented to interfaces is better and is quite difficult to learn how to use it.
@mandanakhashayar9678
@mandanakhashayar9678 2 жыл бұрын
The very clear explanation. Thank you. Even we can have default implementation for method clear in abstract class. That can help us to modify the code much easier when the method is just needed to be implemented by some classes. Thank you so much for your useful videos.
@TheSpiderWalk
@TheSpiderWalk 2 жыл бұрын
Amazing, I saw that there are abstract classes but never knew what are they really for. Thank you for sharing
@xxxxxx542
@xxxxxx542 2 жыл бұрын
Very very clear explanation!,with real example, yes, thats true, you will never see Dogs, Cats,Squares, rectangles, foo and bar in production!, you will see business procesess like this!.. Thank you very much for your useful video! 👍👍
@nedimkulovac6394
@nedimkulovac6394 2 жыл бұрын
Hey Nelson - great content! Love to see patterns like this explained.
@ravienu9912
@ravienu9912 Жыл бұрын
Hi @Amigoscode, I have been following your content for quite long. It's really incredible work you are doing to help all of us. Thank you very much. And I always face challenge in understanding the existing code (mostly I work on Java) when I am moving across new projects. I really appreciate if you can prepare a video on how to understand existing code base of JAVA. Thank you once again.
@abdedaimehicham2650
@abdedaimehicham2650 2 жыл бұрын
Thank you for your explanation I have one remark about the method parse i think you can imporve it by avoiding boilerplate code and leagcy classes to read file and you can use Files.lines and It will return a stream and you can do filter on this stream and create another method to test the regex and apply this method on filter method .
@wgalloPT
@wgalloPT 2 жыл бұрын
i so thankful for everything you do over here!!! ALWAYS amazing. Thank you
@carlkarama
@carlkarama 2 жыл бұрын
Since you are producing/exporting reports, you could implement the visitor behavioural pattern on the abstract class and implement a visitor interface that accepts an export feature
@johnronaldraviz4052
@johnronaldraviz4052 2 жыл бұрын
I never thought of using abstract methods declared on an abstract class. Thanks a lot.
@DebugWithAdam
@DebugWithAdam 2 жыл бұрын
Of course it makes sense as always. Thank you so much man.
@fipabrate
@fipabrate 2 жыл бұрын
Wouldn't it be better to have default implementation of clean function (in this case only return input) in abstract class and then override it in child classes only where you want new functionality?
@noss403
@noss403 2 жыл бұрын
It is good idea.
@mamadoubobodiallo1216
@mamadoubobodiallo1216 2 жыл бұрын
Very useful video bro 👏🏾. Definitely what I need to improve a project I’ve been working on
@wagnernoise
@wagnernoise 2 жыл бұрын
Since I was aware of the factory design pattern (very similar to this) I use it whenever I see it can fit :) Thanks for the great video! Cheers
@cesarhinojosa7679
@cesarhinojosa7679 9 ай бұрын
I was so annoyed at being taught complex design patters and design principles with squares, circles, apples, bananas, etc. Thank you for this very helpful example!
@genprimabiocakti6159
@genprimabiocakti6159 2 жыл бұрын
That non abstract method inside abstract class which call abstract method is make me understand after all. Thank you
@isahbala2540
@isahbala2540 2 жыл бұрын
Funny, but more interesting than Java classes in College! :)
@Another0neTime
@Another0neTime 2 жыл бұрын
Great example, thanks for breaking it down. Cheers.
@daironperezfrias7819
@daironperezfrias7819 2 жыл бұрын
Thanks for all your content, from Cuba !!!
@000124021
@000124021 2 жыл бұрын
Awesome explanation, thank you!
@anastasiagavrilita6567
@anastasiagavrilita6567 2 жыл бұрын
finally: an explanation hitting its target 100% huge youtube, yet so many videos are too "abstract" :D
@RajkumarAdhikari
@RajkumarAdhikari 2 жыл бұрын
Watching from Nepal,🇳🇵 lots of love😊
@zimmtheking
@zimmtheking 2 жыл бұрын
great example and thanks for not using "cats and dogs"!!! please more of this pragmatic and uselful stuff.
@ianneilagasen2842
@ianneilagasen2842 2 жыл бұрын
Good content as always, Nelson! Just one question, is it better to make the non abstract methods become static on the abstract class? So that we dont need to instantiate an object. Example, instead of new NumberExtractorReport().prepareAndSendReport(path) We could do this: NumberExtractorReport.prepareAndSendReport(path)
@noss403
@noss403 2 жыл бұрын
It is not better, but you could do this, if you want.
@petroniobonavides3530
@petroniobonavides3530 2 жыл бұрын
Wonderful lesson!!!! Thanks a lot
@igorsantanas
@igorsantanas 2 жыл бұрын
Wow, I liked that a lot, thanks! Strong content!
@snoopie51
@snoopie51 Жыл бұрын
Thanks for going further than the "Animal" "Shape" stuff. I never understood how to "Actually" do it with those examples.
@francksgenlecroyant
@francksgenlecroyant 2 жыл бұрын
Hats-Off 🙌🙌🙌
@brioquery
@brioquery 2 жыл бұрын
Nice and concise.
@adilwise
@adilwise 2 жыл бұрын
Hey, great job brother
@wildjoe6259
@wildjoe6259 2 жыл бұрын
thx for real example!
@treeteqs
@treeteqs Жыл бұрын
very clean, machallah
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 2 жыл бұрын
It is a very good designed video and very helpful for software developers.
@fdov4
@fdov4 2 жыл бұрын
Thanks for your content, great quality. Greetings from Mexico my friend :D
@hieubui5122
@hieubui5122 2 жыл бұрын
Thanks you amigoscode
@patco101
@patco101 Жыл бұрын
This is a gem.
@fonte1184
@fonte1184 2 жыл бұрын
Hello sir. Please someone recommended your channel for me. Please can you show me how to start with jsp from downloading intellij to running a first program. Thanks for reading
@alexyspol5221
@alexyspol5221 2 жыл бұрын
Very good! Thank you
@sovrinfo
@sovrinfo 2 жыл бұрын
Thanks!
@talbiabdelali5914
@talbiabdelali5914 2 жыл бұрын
Great bro! Thank you
@rajendranaik7317
@rajendranaik7317 2 жыл бұрын
Sincere request to create a Java playlist where an order of the videos for a complete beginner sir...
@harrabiyosri1785
@harrabiyosri1785 2 жыл бұрын
Thanks so helpful
@hoangtuan4592
@hoangtuan4592 2 жыл бұрын
Thank you very much
@jesper9334
@jesper9334 2 жыл бұрын
Thanks for the great video, what color theme are you using?
@alimrad7760
@alimrad7760 2 жыл бұрын
Make a video about design pattern in java, thanks🙏
@rounder1000
@rounder1000 2 жыл бұрын
Salam aleykoum amigoscode, hi everybody Can you make a video of what do you think about remote work. What is your experiences, how did you live the COVID time working from home? What are the pros and cons of remote working? Thank you and big up !
@autoexec5367
@autoexec5367 Жыл бұрын
Brilliant! :)
@caffeinejavacode1475
@caffeinejavacode1475 2 жыл бұрын
as usual, your example is just Hello World *_Can show examples Spring+Abstract class + Generics_* I think it will be more useful Thank you for your effort
@CityCata
@CityCata Жыл бұрын
Im preparing for interviews in January so now Im just browsing youtube reviewing stuff 😄
@mikesabiking
@mikesabiking Жыл бұрын
Instead of making the clean() abstract, would it be better to implement it to return unmodified value. That way existing classes don't need to be modified with clean if it's not needed?
@milanschacht3920
@milanschacht3920 2 жыл бұрын
What do you think about naming abstract classes like AbstractEmailExractor? I know naming is controversial and sometimes hard. :D
@KangoV
@KangoV Жыл бұрын
Only subclass if the phrase "is type of" is true. Also, keep this in your head whenever you are designing..,.. "prefer composition over inheritance" and you'll not go far wrong. Also remember a class should only do ONE thing and do that thing well. As soon as you start mixing concerns, your class becomes needlessly complex and breaks the Single Responsibility Principle.
@thanhlocnguyen4910
@thanhlocnguyen4910 2 жыл бұрын
Nice video ! Can you have a video how to deploy microservices into AWS ?
@stevegatspaul
@stevegatspaul 2 жыл бұрын
what is difference between interface and abstract class?
@natanaelsc
@natanaelsc 2 жыл бұрын
Thanks bro!
@zzzzzzzzzz2588
@zzzzzzzzzz2588 2 жыл бұрын
Amazing video. Could you please tell me what theme are you using?
@alexeygopro1282
@alexeygopro1282 2 жыл бұрын
Is it possible to use interfaces here instead of abstract classes? What are pros and cons? Thank you for video
@TransitionPhase
@TransitionPhase 2 жыл бұрын
Depends on your situation. If you would use interfaces in this specific example you can not have a common parse() method and you will have to copy the same code in the parse method of every implementation of the interface. And this exceeds the DRY (dont repeat yourself) principle
@noss403
@noss403 2 жыл бұрын
@@TransitionPhase Interfaces can have default methods (methods with implementation). Since Java 8.
@TransitionPhase
@TransitionPhase 2 жыл бұрын
@@noss403 Its true thx for noticing, I forgot that's possible. Then i guess it's the best to use abstract classes in this case cause interfaces are more generic in what they promise to do.
@FahadAli-km3ll
@FahadAli-km3ll 2 жыл бұрын
As-salamu 'alaykum bro. Can you do a video on CI/CD? :)
@MudassirKhan-sx9jy
@MudassirKhan-sx9jy Жыл бұрын
Wa alaikum Salam.
@travelers4178
@travelers4178 2 жыл бұрын
First comment ☺️ Assalamu aleykum my brother 👍 good video! We need to refresh our memory all the time.
@nikhiljose2029
@nikhiljose2029 2 жыл бұрын
Is regex testing available in intellij community?
@Mac1355
@Mac1355 2 жыл бұрын
hello very nice video about important thread in Java. is good review some principies abou t the way to code better all days. Many thanks
@dansmar_2414
@dansmar_2414 11 ай бұрын
This is a great explanation, thank you so much!
@aayush5474
@aayush5474 2 жыл бұрын
when to abstract class and when to use interface?
@inoobbeyt1031
@inoobbeyt1031 Жыл бұрын
Can make video on method return abstract class ?
@EnchikO
@EnchikO 2 жыл бұрын
Why should I use Open JDK instead of Oracle Open JDK when both can be use commercially. Thank you.
@modoulaminceesay9211
@modoulaminceesay9211 2 жыл бұрын
I might learn java, i know c++ , python and javascript
@USONOFAV
@USONOFAV 2 жыл бұрын
what's the difference between Abstract classes and Interface with default methods. Anyone? You can have common functionality on both abstract class and interface.
@mychellmotta6639
@mychellmotta6639 2 жыл бұрын
You can't implement methods on interfaces, so in his example, he would have duplicate code on both NumberExtractor and NumberExtractor with the parse method.
@94JulianDavid
@94JulianDavid Жыл бұрын
@@mychellmotta6639 Since java 8 you can have default methods in interfaces
@christopherabelet4672
@christopherabelet4672 2 жыл бұрын
Thanks very interresting. However I do not understant thé diffences wirh the interfaces
@pavanrai6196
@pavanrai6196 2 жыл бұрын
Please launch design patterns course on your website
@EdwardNorthwind
@EdwardNorthwind 3 ай бұрын
No. You needed to override the parent method in the EmailExtractorReport class and wrap the parent method in your new clean method. You yourself say that classes should be open for extension but closed for modification.
@sayyedmuaaz
@sayyedmuaaz Жыл бұрын
But what is the difference between polymorphism and abstract classes then? Are they serving the same goal?
@thapelomorare1484
@thapelomorare1484 2 жыл бұрын
Do Servlets and jsp
@flyingrecordofficial
@flyingrecordofficial 2 жыл бұрын
Mashaallah bro
@terabhai4955
@terabhai4955 2 жыл бұрын
please make video on tomcat!
@bakre_dev8728
@bakre_dev8728 Жыл бұрын
@brimabah2163
@brimabah2163 2 жыл бұрын
I would like to join your boot camp
@trungthanh4134
@trungthanh4134 2 жыл бұрын
what font do u use in this video
@sadiulhakim7814
@sadiulhakim7814 2 жыл бұрын
Where should i use final class?
@Danish_Khan_
@Danish_Khan_ 2 жыл бұрын
Please please, guid me which tech skill i should learn so I land a job in halal compony. There are so many haram stuff in software development and many tech industry. Please please guid me. ❤️🙂
@erickshaffer6615
@erickshaffer6615 Жыл бұрын
Says he won't do the typical animal example. Proceeds to do exactly that
@pancake4691
@pancake4691 Жыл бұрын
fr lol
@noss403
@noss403 2 жыл бұрын
Wouldn't it be better to write code like this: (in parse method) if(!scanner.hasNext()) { return "Empty file"; } scanner.nextLine(); ....
@TheStrategist314
@TheStrategist314 2 жыл бұрын
how come when I click the discord, it doesn't work?
@jessefazbear
@jessefazbear 2 жыл бұрын
Los Pollos Amigos
@raulrahaman9863
@raulrahaman9863 2 жыл бұрын
I don’t understand anything after the reading of the files part :(
@rabbyhossain9537
@rabbyhossain9537 2 жыл бұрын
How much salary give your company for you
@traviswhitten6452
@traviswhitten6452 Жыл бұрын
Why make the PATTERN static?
@94JulianDavid
@94JulianDavid Жыл бұрын
Why don't use interfaces ?
@TeslaDo
@TeslaDo 2 жыл бұрын
Abscract / abstract? Is it only a typo or a slang?
@blockbuster_7103
@blockbuster_7103 2 жыл бұрын
Use kotlin
@user-iy9ku8hk3x
@user-iy9ku8hk3x 2 жыл бұрын
whos deliting my comments?
@MuslimMan377
@MuslimMan377 2 жыл бұрын
Him : salam alaikom Me : subscribe, like
@redhotbits
@redhotbits Жыл бұрын
just dont use them
@beshbenesh1796
@beshbenesh1796 2 жыл бұрын
yes no more cats ands dogs..... :)
@abdullahdaoud
@abdullahdaoud 2 жыл бұрын
Thank you so match , this is very great 🤍
@valarchandran6581
@valarchandran6581 2 жыл бұрын
@amigoscode nice explanation
@dudnik399
@dudnik399 25 күн бұрын
Great example, thanks for breaking it down. Cheers.
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 191 М.
Abstract Classes vs Interfaces (Java)
9:43
The Code Hard Truth
Рет қаралды 205 М.
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 80 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
Получилось у Вики?😂 #хабибка
00:14
ХАБИБ
Рет қаралды 6 МЛН
the right way to organise your code
17:33
Amigoscode
Рет қаралды 192 М.
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 535 М.
Abstract class in Typescript
9:37
Hitesh Choudhary
Рет қаралды 15 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 485 М.
Interfaces vs Abstract Classes
14:43
Raw Coding
Рет қаралды 13 М.
Learn Dependency Injection and Write Better Code
21:52
Amigoscode
Рет қаралды 167 М.
Java abstraction 👻
5:30
Bro Code
Рет қаралды 125 М.
Java Functional Programming | Full Course
2:22:15
Amigoscode
Рет қаралды 559 М.
Kafka Tutorial - Spring Boot Microservices
51:29
Amigoscode
Рет қаралды 406 М.
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
AndroHack
Рет қаралды 93 М.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 223 М.
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,1 МЛН
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 4,2 МЛН