C# Constructor Inheritance - This is how it works

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 9

  • @tutorialsEUC
    @tutorialsEUC  Рік тому +2

    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg

  • @brianwere4495
    @brianwere4495 Рік тому +2

    short and clear. Nice on my boy

  • @199772AVVI
    @199772AVVI Рік тому +1

    I have two things to mention, first is that the base (inherited) ctor always runs first and there is no way around that! The second thing, you can also inherit ctors from current class (this), to do that, in the ctor instead of inheriting base ( : base()) you inherit this ( : this()).

  • @ManishBhusal
    @ManishBhusal 4 місяці тому

    this is the best explanation, thank you

  • @molikgoel9438
    @molikgoel9438 3 місяці тому

    Constructor Inherehtence is kinda similar to Polymorphism as base type name changes to value provided by Employee subclass

  • @mmisterWhite
    @mmisterWhite Рік тому

    But how do you now make a list of Persons in which you can store multiple sub classes like Employee and Manager? I am unable to make it work and there are no clear examples of it online

  • @BrisbaneStomp
    @BrisbaneStomp 10 місяців тому

    Is it just me or the code is multiplying the same code in order to reduce writing the same code… it might be a tad different but it’s still writing the same general code over and over. Not your fault, I think it’s an issue with c#

  • @غصنالزيتون-ف7ز
    @غصنالزيتون-ف7ز 11 місяців тому

    Excessive talk is not the explanation and it is not the explanation
    You talk too much = losing the basic meaning