C++ Tutorial #57 : Polymorphism ctd: Virtual functions & 'Abstraction layers'

preview_player
Показать описание

Now, I will demonstrate how rectify (but not eliminate) the error demonstrated last time.

Then I go on to implement a method for creating a *set* of the "virtual functions" through the creation of a table of similarly-typed pointer-to-member functions.

Lastly, I give a real-life example (from my own experience) where this kind of virtualization is used to create arbitrary abstraction layers corresponding with user-defined interfaces by the invention of a base class (interface) and inheritance (implementation), and virtual functions (exposure).

- A
Рекомендации по теме
Комментарии
Автор

The Best teacher of all time I ever saw.

krantimadineni
Автор

It's actually children playing, and being taken as "noise" (and modified) by the mic's noise reduction feature. I would turn the feature off but then all you get is REALLY loud static. The reason for the children is I live next to a grade school!

I have to say though, with the mic, it does do a pretty good job with that reduction. But what little gets always seems to have a kind of "electronic" synthesized sound to it... or a "whistle" maybe? I might be able to isolate a sample and remove it.

AlanCarre
Автор

TYPO:
"what little gets *through* always ..."

rather than:

"what little gets always ..."

AlanCarre
join shbcf.ru