Hidden Feature: Implement A Pure Virtual Function In Its Own Abstract Class | C++ Tutorial

  Рет қаралды 1,131

Portfolio Courses

Portfolio Courses

Күн бұрын

A "hidden feature" in C++ is that we actually can provide an implementation for a pure virtual function in its own abstract class, in this video we discuss how and why to do this. Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!

Пікірлер: 1
@harishkuppam5756
@harishkuppam5756 Жыл бұрын
If we need to maintain the total length of logged messages, we are required to call the base call virtual function in all the derived classes right so doesn't that make this code anti-pattern? I know it won't cause any error if we don't call the virtual function in derived class but the whole purpose of implementing the function in Base class is lost if we don't call it in all the derived classes right?
Function Templates | C++ Tutorial
10:54
Portfolio Courses
Рет қаралды 7 М.
Dynamic Binding (Polymorphism) With The Virtual Keyword | C++ Tutorial
9:57
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 17 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 778 М.
Abstract Classes And Pure Virtual Functions | C++ Tutorial
11:05
Portfolio Courses
Рет қаралды 15 М.
Exception Handling | C++ Tutorial
14:49
Portfolio Courses
Рет қаралды 16 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
C++ Templates - Part 4 : Curiously Recurring Template Pattern
12:22
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 144 М.
Introduction To Threads (pthreads) | C Programming Tutorial
13:39
Portfolio Courses
Рет қаралды 89 М.
Segmentation Faults And Common Causes | C Programming Tutorial
10:51
Portfolio Courses
Рет қаралды 2,7 М.
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН