Object oriented programming and polymorphism in C

preview_player
Показать описание
How to implement objects and polymorphism in C?

Tutorials to get started with C before watching
Рекомендации по теме
Комментарии
Автор

I liked and subscribed as 4th subscriber.

najafimushtaqhussain
Автор

Since you have a hierarchy of heap allocated structs, you should define destructor as well. The OS will clean up your memory, but this is still poor from a memory management perspective

bitshiftbandit
Автор

so, you added typing sound effects from an electronic typewriter sound font, and at a high volume.. why?

DemoboyOot
Автор

So many things wrongs in this video. Please check in miro serie. The pointers have overhead. Pointers in struct should be in first position and more.

juniorlucival
Автор

Why you did not use Shape* as first argument in struct Rectangle, Circle and Ring. This allows you direct cast compared to composition. In this case your code would be simpler and less chaty.

samosimoncic