C# Constructor Inheritance - This is how it works

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • 🔥 Never heard of Constructor inheritance? Oh, you did?! Well, I think there might be something in here, even YOU do not know!
    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg
    We'll make sure to turn you into a true developer in no time!
    Timestamps:
    00:00 Introduction
    00:19 What are we going to do?
    00:50 Lets start inheriting!
    03:12 This one is for you!
    03:37 Another good example for constructor inheritance
    04:47 Thanks for watching!
    C# Constructor Inheritance - This is how it works
    So, what is C#?
    C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.
    C# is an object-oriented, component-oriented programming language. C# provides language constructs to directly support these concepts, making C# a natural language in which to create and use software components. Since its origin, C# has added features to support new workloads and emerging software design practices. At its core, C# is an object-oriented language. You define types and their behavior.
    And what is ASP.NET?
    ASP.NET is an open-source, server-side web-application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, applications and services. The name stands for Active Server Pages Network Enabled Technologies.
    And what are constructors?
    Whenever an instance of a class or a struct is created, its constructor is called. A class or struct may have multiple constructors that take different arguments. Constructors enable the programmer to set default values, limit instantiation, and write code that is flexible and easy to read. For more information and examples, see Instance constructors and Using constructors.
    And what is Inheritance?
    Inheritance, together with encapsulation and polymorphism, is one of the three primary characteristics of object-oriented programming. Inheritance enables you to create new classes that reuse, extend, and modify the behavior defined in other classes. The class whose members are inherited is called the base class, and the class that inherits those members is called the derived class. A derived class can have only one direct base class. However, inheritance is transitive. If ClassC is derived from ClassB, and ClassB is derived from ClassA, ClassC inherits the members declared in ClassB and ClassA.
    To learn more, make sure to watch the video, and we promise you that you'll become a better developer by the end of the video! Have fun!
    And thank you LAKEY INSPIRED for these amazing songs that we use in all our videos! @LAKEYINSPIRED
    #csharp #coding #tutorial #learn #microsoft #net #constructor #inheritance
    TAGS
    c#,.net,c-sharp,csharp,programming,visual studio,c sharp,learn c#,c# programming,c# tutorial,c# for beginners,learn c# programming,c# course,tutorial,coding,constructor inheritance,class,inheritance,constructor,constructor in inheritance,constructor in inheritance c#,constructor inheritance c#,c# inheritance,constructors in c#,constructor in inheritance in c#,c# interview questions,c# interview questions and answers,.net interview questions
    TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
    This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
    Stay tuned and subscribe to tutorialsEU: goo.gl/rBFh3x
    C#: / @tutorialseuc
    Facebook: / tutorialseu-1093802040...
    LinkedIn: / tutorialseu
    Discord: / discord

КОМЕНТАРІ • 7

  • @tutorialsEUC
    @tutorialsEUC  10 місяців тому +2

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

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

    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()).

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

    short and clear. Nice on my boy

  • @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 4 місяці тому

    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#

  • @user-ib1lu3kq8t
    @user-ib1lu3kq8t 5 місяців тому

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