C# abstract classes and methods in 8 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 8

  • @tutorialsEUC
    @tutorialsEUC  ปีที่แล้ว +1

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

  • @Drougar108
    @Drougar108 ปีที่แล้ว +2

    Thank you i had 4 hours of sleep and i needed to get some more abstact and interface info into my brain, and as it is this weeks class subject and im trying to cram it in there.

  • @sanjaytharan622
    @sanjaytharan622 4 หลายเดือนก่อน +1

    This one is a saver!!!
    Thanks alot❤

  • @fakeITDevTeam
    @fakeITDevTeam ปีที่แล้ว

    Clarly explained. Thank you. Anyway, is this channel still active or do you move to the tutorialseu?

  • @WorstDeveloper
    @WorstDeveloper 8 หลายเดือนก่อน +1

    Why would you use abstract classes instead of interfaces?

    • @iamdev1195
      @iamdev1195 5 หลายเดือนก่อน

      for direct usage :
      for eg -
      Math m = new Math ();
      var r = m.round(3.12); // this does not make sense
      that is why we directly use the function like - abstraction
      Math.Round(3.12);

  • @imranjalali
    @imranjalali ปีที่แล้ว

    I think there is no need to define string as nullable object because it is already null by default if no value if given.

  • @technocrazy9528
    @technocrazy9528 4 หลายเดือนก่อน

    At th-cam.com/video/qgU2ojOKLP8/w-d-xo.html you say that in an abstract class we can always use virtual so even if Animal is not implementing the IAnimal interface, we can still use virtual on a method to have some default behaviour and the derived classes Dog and Cat do not have to implement MakeSound, they could implement it. But if we want to say that they have to implement it, then we have to make sure Animal implements IAnimal Interface. But with this too, if we have virtual MakeSound method in Animal class with default implementation, the derived classes work even without implementing MakeSound(). Why is this?