Pure Virtual Destructors | C++ Tutorial

  Рет қаралды 3,085

Portfolio Courses

Portfolio Courses

Күн бұрын

How to use pure virtual destructors in C++, including when they are useful to use. Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!

Пікірлер: 10
@mongraal2272
@mongraal2272 2 жыл бұрын
First,love your vids
@PortfolioCourses
@PortfolioCourses 2 жыл бұрын
Haha thank you as always.
@mba2ceo
@mba2ceo Жыл бұрын
please explain the three new objects. 2:07 New Base() is a function or pointer ? The () confuses me ? so () are NOT needed ? What is the significance of () ?
@essentia9
@essentia9 Ай бұрын
Base() - calls the constructor of Base. new Base() allocates memory and creates an object of type Base and returns pointer to it
@Victor-fl8ex
@Victor-fl8ex 2 жыл бұрын
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! :-)
@Victor-fl8ex
@Victor-fl8ex 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 жыл бұрын
@@Victor-fl8ex yes, one pure virtual function makes the class abstract
@Victor-fl8ex
@Victor-fl8ex 2 жыл бұрын
@@PortfolioCourses noted. Thanks Kevin!
Abstract Classes And Pure Virtual Functions | C++ Tutorial
11:05
Portfolio Courses
Рет қаралды 15 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 12 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 32 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 37 МЛН
Overloading Function Templates | C++ Tutorial
9:54
Portfolio Courses
Рет қаралды 7 М.
Virtual Destructors | C++ Tutorial
10:07
Portfolio Courses
Рет қаралды 2,8 М.
Virtual Destructors in C++
7:55
The Cherno
Рет қаралды 103 М.
Function Templates | C++ Tutorial
10:54
Portfolio Courses
Рет қаралды 6 М.
I SHOCKED A GM!!!!!!!!
26:44
GothamChess
Рет қаралды 40 М.
C++ Abstract base classes and pure virtual functions [7]
7:09
Professor Hank Stalica
Рет қаралды 3,7 М.
How C++ took a turn for the worse
5:03
Code Persist
Рет қаралды 261 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 12 МЛН