Pure Virtual Destructors | C++ Tutorial

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

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

  • @Vichained
    @Vichained 2 года назад +1

    so when you have a pure function into a class (like Base in this case), the entire class becomes abstract automatically?

    • @PortfolioCourses
      @PortfolioCourses  2 года назад

      Yes, that's right! :-)

    • @Vichained
      @Vichained 2 года назад

      @@PortfolioCourses But if for example inside your Base clase you have 4 defined functions + 1 pure. Does the class become abatract in this case too?

    • @PortfolioCourses
      @PortfolioCourses  2 года назад +1

      @@Vichained yes, one pure virtual function makes the class abstract

    • @Vichained
      @Vichained 2 года назад

      @@PortfolioCourses noted. Thanks Kevin!

  • @mongraal2272
    @mongraal2272 2 года назад +2

    First,love your vids