Sealed Classes and Interfaces - Java Programming

Sdílet
Vložit
  • čas přidán 20. 07. 2023
  • In this video, we'll talk all about sealed classes and interfaces in Java. One of the main delimmas of an object oriented designer is how much extension should an API allow. Sealed class and interfaces offer a way to walk the balance between locking down your code vs opening it up wide to extension. Hope you like the video!
    My name is Will Tollefson! I'm here to teach you key skills that will help you land your first programming job or stay current and competitive for those promotions in your current job. Subscribe to my channel and I'll help you grow in your programming skills, and make your career soar!
    Join me to learn computer programming in an easy to learn way, with a teacher who isn't talking over your head. Or sounds like this. But instead explains things in a way you can understand.
    I'm a software engineer in industry who has been coding for over a decade now and my motto is Never Stop Learning. I can give you insight into skills that employers actually care about as in addition to being a programmer I also have hired software engineers.
    Ring that notification bell so you never miss fresh content that just might help you with your current programming bug.
    I have experience with various types of programming such as mobile phone apps, scientific computational modeling, and embedded communications systems, to name a few, and I've worked on teams ranging from one to over one hundred programmers.
    The content I'm offering you is free, self paced, and practical for computer programming jobs. I'll teach you skills you need to be competitive.
    Let's dive into programming concepts like algorithms and data structures that are mostly language agnostic.
    If you've got ideas of topics or a programming dilemma you want me to cover, drop me a comment! I'll be efficient with your time so without further ado, let's get to it!

Komentáře • 15

  • @DenaTollefson
    @DenaTollefson Před rokem +4

    Excellent tutorial, Will!! You are extremely knowledgeable! 😃

  • @Egor_Phyl
    @Egor_Phyl Před 28 dny +1

    Great explanation!

  • @pablopronsky7364
    @pablopronsky7364 Před rokem +4

    Great video, Will!! Hope you are doing great!! cheers!!

    • @willtollefson
      @willtollefson  Před rokem +4

      Thanks, Pablo, I'm doing well! Let me know if you think of other future video ideas and I'll try to make videos addressing them :)

    • @pablopronsky7364
      @pablopronsky7364 Před rokem +4

      @@willtollefson Well actually I'm learning JPA with DAO and my course teachers are the worst at explaining things, but I guess that's too long for a video.
      Let me congratulate you again Will, your channel is growing at a 10% weekly which is amazing!!!! you are the best!!!

    • @willtollefson
      @willtollefson  Před rokem +3

      Ah the DAO pattern - that's a good one :) Agreed that's probably too much for one video, but I'll take a note to see if I can make some future videos about persistence interfaces and DAOs. I hope you're doing well!

  • @nayanasaji7701
    @nayanasaji7701 Před 5 měsíci +1

    That was a great video 😊

  • @cilla___
    @cilla___ Před 8 měsíci +2

    Thanks, very clear examples 👍🏻

  • @jothamzvikonyaukwa1306
    @jothamzvikonyaukwa1306 Před 5 měsíci +1

    how do sealed classes work in modules, unnamed for example when using permits clause.

    • @willtollefson
      @willtollefson  Před 5 měsíci +1

      I actually haven't tried crossing modules much with the sealed classes concept. I think when you have a named module your permits classes need to be in the same module and when you have an unnamed module they have to be in the same package. My thought process there is that would allow the compiler to know at compile time how it can enforce the permits clause. Hope this helps!

    • @jothamzvikonyaukwa1306
      @jothamzvikonyaukwa1306 Před 5 měsíci +1

      @@willtollefson that's helps a lot, thanks.

  • @vasylvch9320
    @vasylvch9320 Před 18 dny

    +++