Your Ninth Day in C (Object Oriented Programming in C) - Crash Course in C Programming
Mike Shah
0:00 / 0:00
Your Ninth Day in C (Object Oriented Programming in C) - Crash Course in C Programming
12 939 просмотров · 4 года назад
Mike Shah
41,7 тыс. подписчиков
12 939 просмотров · 4 года назад
►C Programming playlist: • C Programming Series
►Find full courses on: https://courses.mshah.io/
►Join as member to get perks: / @mikeshah
►Lesson Description: In this lessons I show you how you would program in an 'object-oriented' style in the C programming language. C as a general purpose language allows you to build 'language' features from scratch if you need them, or otherwise understand the programming paradigm. I think this lesson will show more of an appreciation of other languages, and otherwise understanding how language features are built from scratch can help give you more command over the language.
00:00 Introduction and code walk definition
1:20 Observing array_t data structure
2:20 The self and function pointers in array_t
3:15 Get and Set function and passing in struct as a pointer
5:12 The constructor or 'factory function' for creating array_t
7:30 Setting up our function pointers
9:20 Destructors to destroy our array_t
10:44 Using our array_t
12:40 A quick review again of array_t
14:24 The equivalent C++ code
20:01 Conclusion
►Please like and subscribe to help the channel!
►YouTube Channel: / mikeshah
►Join our free community: https://courses.mshah.io/communities/...