39. Template Method Design Pattern Explanation in Java | Concept and Coding LLD | Low Level Design

Поділитися
Вставка
  • Опубліковано 20 гру 2023
  • Notes link:
    Shared in the Member Community Post (If you are Member of this channel, then pls check the Member community post, i have shared the Notes link there)
    ➡️ Become a Channel Member:
    / @conceptandcoding
    #softwareengineer #systemdesign #designpatterns

КОМЕНТАРІ • 27

  • @mailtodanish
    @mailtodanish 5 місяців тому

    Nice... very good

  • @fa1con989
    @fa1con989 5 місяців тому +2

    Hi Shreyansh!
    I have a suggestion for LLD can you create a list of all relevant design patterns and questions based on the candidate's years of experience? It would help us filter problems based on experience level

  • @Shiladitya7
    @Shiladitya7 5 місяців тому

    Very nice explanation. One question- can we create another template method in the same abstract class PaymentFlow, where it might have only validateRequest(), debitAmount() and creditAmount() methods ? Main agenda is if we want to skip any step for another child class can we do that using template method or we have to call one by one the required methods ?

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому +1

      Else can have multiple template method. But generally if any class has to skip any step, generally we provide empty implementation in that child class

    • @Shiladitya7
      @Shiladitya7 5 місяців тому

      @@ConceptandCodingOk, got it. Thanks.

  • @gurupreetsingh8347
    @gurupreetsingh8347 5 місяців тому

    Nice one I have used it before java 8, but can we use interface because interface also have abstract method and we can use default method also in java 8 , from default method of interface we can invoked abstract methods, is it correct Way ? If yes than what the the benefits of using abstract classes now ?

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому +1

      yes , we can use.
      Before Java8, abstract and interface had clear difference (100% abstraction in interface vs Controlled abstraction in Abstract class)
      but after Java8, this difference has been faded away. We can use any. (but interface still helps in achieving Multiple inheritence)

    • @gurupreetsingh8347
      @gurupreetsingh8347 5 місяців тому

      @@ConceptandCoding yes , thanks 👍👌👏😊

  • @therealsumitshah
    @therealsumitshah 5 місяців тому +1

    Is your LLD enough for Product Based Companies?

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому +2

      It will give you good understanding of all topics and lot of interview question solutions but you have to do hand practise for that,

  • @fa1con989
    @fa1con989 5 місяців тому

    Do companies ask for HLD if you have less than 1.5 years of experience?

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому

      Yes, basics but depends upon company to company

  • @yuvhrajverma9665
    @yuvhrajverma9665 5 місяців тому

    Hi sir for concurrency can u make video on actor model

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому

      Ack

    • @yuvhrajverma9665
      @yuvhrajverma9665 5 місяців тому

      @@ConceptandCoding sir i recently came across a LinkedIn post where It highlited how PayPal uses actor model , so I just became curious to know about this, hoping that u will make a good video on this

  • @tanishqrawat2918
    @tanishqrawat2918 5 місяців тому

    Hi sir, I am Tanishq studying in BIT mesra, I watched your videos related to java and found them very useful for myself I wish to access your premium but my house financial condition isn't right. I request you if you could please provide it to me.

  • @prasenjitsutradhar3368
    @prasenjitsutradhar3368 5 місяців тому +1

    Is there any Design Pattern that exist on earth and you haven't covered yet!

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому +3

      Interceptor Pattern saying Hi :)

    • @prasenjitsutradhar3368
      @prasenjitsutradhar3368 5 місяців тому +1

      ​@@ConceptandCoding Truly impressed by your determination and hard work. Looking for similar level of breadth and depth in your High-Level Design series as well.

  • @samrinsultana8720
    @samrinsultana8720 5 місяців тому

    Hello sir,
    I have done payment Rs 159 to unlock java videos and my money got debited to you account but i am not able to access the java videos and it is showing me the purchased cancelled can you please provide me the access to the java videos

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому +2

      hi, payment feature is handled by UA-cam, i can only view the list of members, currently i do not see your name in that.
      If that is cancelled, youtube will initiate the refund, kindly wait for sometime or kindly check with UA-cam support team as i have 0 control over payment platform of UA-cam.

  • @ashishchoksi8501
    @ashishchoksi8501 5 місяців тому

    isn't those abstract methods should private?

    • @ConceptandCoding
      @ConceptandCoding  5 місяців тому

      Could you please elaborate a bit more

    • @ashishchoksi8501
      @ashishchoksi8501 5 місяців тому

      @@ConceptandCoding if abstract method is not private than caller can call those methods directly in any order right??