filmov
tv
C++ Tutorial: Introduction to Inheritance and Polymorphism

Показать описание
In this C++ tutorial we're going to take an initial look at inheritance and polymorphism. We'll look at what they are, why they're useful and we'll see how to setup a set of classes that use it.
🎞️ Chapters
00:00 Introduction
00:50 How can inheritance help us?
02:00 Setting up the 'bad' version to start
09:00 Inheritance to the rescue
09:50 Adding our Animal class and setting up inheritance
14:00 Adding our PerformAppear function
16:20 Introduction to virtual functions
18:35 Polymorphism and pointers
21:30 Moving common data and code to the parent
24:25 Calling our parent's constructor
25:45 Calling the parent version of our function
29:30 Adding a rabbit
31:00 Accessing parent data
32:30 Protecting parent data and functions
36:10 Recapping
Looking for other ways to get involved?
🎉 Thankyou to all of the Patrons 🎉
➔ Grant Coble-Neal
➔ John Kenneth Douglas
➔ Kasper Enwall
➔ Tylah Heil
➔ Ian Kehoe
➔ James McCarthy
➔ Kalvin Pearce
➔ Seriphis
➔ Bradley Seymour
➔ SiliconOrchid
➔ Brian Smith
➔ Callan Syratt
#cplusplustutorial #Tutorial #cplusplus
🎞️ Chapters
00:00 Introduction
00:50 How can inheritance help us?
02:00 Setting up the 'bad' version to start
09:00 Inheritance to the rescue
09:50 Adding our Animal class and setting up inheritance
14:00 Adding our PerformAppear function
16:20 Introduction to virtual functions
18:35 Polymorphism and pointers
21:30 Moving common data and code to the parent
24:25 Calling our parent's constructor
25:45 Calling the parent version of our function
29:30 Adding a rabbit
31:00 Accessing parent data
32:30 Protecting parent data and functions
36:10 Recapping
Looking for other ways to get involved?
🎉 Thankyou to all of the Patrons 🎉
➔ Grant Coble-Neal
➔ John Kenneth Douglas
➔ Kasper Enwall
➔ Tylah Heil
➔ Ian Kehoe
➔ James McCarthy
➔ Kalvin Pearce
➔ Seriphis
➔ Bradley Seymour
➔ SiliconOrchid
➔ Brian Smith
➔ Callan Syratt
#cplusplustutorial #Tutorial #cplusplus