What is Dependency Inversion Principle ?

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 45

  • @softrical
    @softrical Месяц назад +1

    Amazing! Finally someone told Dependency Inversion in the simplest possible example. You covered both problem statement and solution, just under 4 minutes! Just perfect! "Don't code for classes, instead code for interfaces"

  • @thotasunitha
    @thotasunitha 11 дней назад +1

    preparing for my interview based on your videos I improved much on my skills with the help of your videos only thank you very much.

  • @mvsr9294
    @mvsr9294 2 месяца назад +1

    you made all SOLID principles so simple to understand. Thanks for your efforts. 🙏

  • @kavitadiwan706
    @kavitadiwan706 Год назад +5

    Hello Sir, thank you so much for this. It's hard to find a well explained and demonstrated tutorial on SOLID principles and you did a fantastic job!

  • @StatistikaInfo
    @StatistikaInfo 3 месяца назад +1

    This is THE BEST explanation of the D principle. Thanks a lot!

  • @Ethanjayc
    @Ethanjayc Год назад +5

    Prepping for my 2nd .NET role, brushing up on SOLID, this helps, thanks!

    • @interviewhappy
      @interviewhappy  Год назад

      Thanks Shubham and all the best for your interviews.

  • @abhiranjantiwari6710
    @abhiranjantiwari6710 8 месяцев назад +1

    Hello Sir, Great Explanation for SOLID Principle, Need at least 2 design pattern videos with example(Singleton, And Factory) Please

  • @naveenpolasu4670
    @naveenpolasu4670 Год назад +1

    Thanks for your videos. You made SOLID principles so easy

  • @user-jb6of3fy3x
    @user-jb6of3fy3x 7 месяцев назад

    I'm so glad there is a "CC" option. Very well explained tho!

  • @programmingpersistence5716
    @programmingpersistence5716 7 месяцев назад

    This is amazing explanation..now i understnad what this is and why its important

  • @hemalathamanickam7586
    @hemalathamanickam7586 10 месяцев назад +2

    Can you please post videos on design patterns

  • @kaminey26
    @kaminey26 6 месяцев назад

    Very clear explanation and nice example. Good content, thanks and keep it up

  • @JonuGurjar
    @JonuGurjar Год назад

    After couple of videos found this super explained. Thanks bro

  • @mounikakasthuri4162
    @mounikakasthuri4162 Год назад +2

    Hai Sir, i have a question ... i.e
    What is sso & 2Factor Authentication... Is these are related to c# or else what???
    Can you please Answer it sir...

    • @interviewhappy
      @interviewhappy  Год назад

      Hi Mounika, sso & 2Factor Authentication are used to secure the web applications. If your web application is created in Java then implement them in Java. If your web application is created in C#/ .NET then implement them in C#/ .NET. Basically depends on web application tech stack

    • @mounikakasthuri4162
      @mounikakasthuri4162 Год назад

      @@interviewhappy Thank you Sir

  • @leelavenkatesh3828
    @leelavenkatesh3828 10 месяцев назад

    Dependency inversion principle and dependency inversion control both are same or not

  • @shohaibpt2996
    @shohaibpt2996 Год назад

    Perfect explanation ever seen. Thank you sir👍🏻

  • @gj9771
    @gj9771 Год назад +1

    Very nice and simple explanation

    • @interviewhappy
      @interviewhappy  Год назад

      Thanks buddy and all the best for your career.

  • @car_holic1995
    @car_holic1995 Год назад +1

    thanks for this sir..but can you please throw some light on differnce between high level class and low level class.?

    • @interviewhappy
      @interviewhappy  Год назад

      It's not a very common way of describing classes... but they are almost like base class and derived class.

  • @vivekrajput3239
    @vivekrajput3239 2 месяца назад

    Really simple language to understand thanks

  • @qwertyuiopsdfgh
    @qwertyuiopsdfgh 5 месяцев назад +1

    I don't think the explanation is 100% correct. I don't understand how the service knows which implementation of the interface to use. I think this is the missing part of the explanation:
    public interface ILogger
    {
    void Log(string message);
    }
    public class FileLogger : ILogger
    {
    public void Log(string message)
    {
    // Logic to log message to a file
    }
    }
    public class DatabaseLogger : ILogger
    {
    public void Log(string message)
    {
    // Logic to log message to a database
    }
    }
    public class SomeService
    {
    private readonly ILogger _logger;
    public SomeService(ILogger logger)
    {
    _logger = logger;
    }
    public void DoSomething()
    {
    _logger.Log("Doing something important");
    }
    }
    // In your application's startup configuration
    services.AddSingleton(); // DI container is configured to use FileLogger whenever ILogger is injected

  • @jowbloe4700
    @jowbloe4700 Год назад

    Great series! Short and Sweet.

  • @magedgamil2820
    @magedgamil2820 Год назад

    can you answer this question "What’s the difference between the Arr? y.CopyTo() and Array.Clone()?"

  • @DHANANJAYGROVER
    @DHANANJAYGROVER 6 месяцев назад

    can object of interface be created...., is it allowed>?

  • @deepakprabhu598
    @deepakprabhu598 Год назад

    Can you please explain public static void main(string[] args)?

  • @ThePoiMaster
    @ThePoiMaster 9 месяцев назад

    Finally an Indian talking slowly

  • @HariKrishna-nn5br
    @HariKrishna-nn5br Год назад +1

    Easy understand

  • @syed-2255
    @syed-2255 6 месяцев назад

    well explained man 💥

  • @akhileshwarv8525
    @akhileshwarv8525 Год назад

    Nice explanation

  • @hidass2006
    @hidass2006 5 месяцев назад

    @interviewhappy Very informative...simply explained it.

  • @baneenamolvp1600
    @baneenamolvp1600 Год назад

    Thank you Sir ...

  • @sripriyanagaraju7019
    @sripriyanagaraju7019 11 месяцев назад +1

    👌

  • @sumitpandey333
    @sumitpandey333 5 дней назад

    Ye totally bakwas laga mujhe