C++ #20 - polymorphisme

One interface to rule them all! Or rather, an implementation that can take several forms, depending on the actual type of the entities. 00:00 Introduction 00:21 What is polymorphism? 01:02 Example code 02:59 Setting up inheritance 05:38 Virtual method in a class 07:24 Overriding a method in a subclass 10:43 Adding new types for polymorphism 12:28 Accessing attributes from a subclass 15:24 How polymorphism works 20:37 An update on ad hoc polymorphism 21:16 Calling a method from the parent class 22:34 Abstract class 25:04 Pure virtual method 26:55 What's the difference with an interface? 32:30 Conclusion ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ 💙 If you haven't already, don't hesitate to subscribe to the channel! ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ◾ Support FormationVideo: https://bit.ly/2L0xNXA ◾ Website: https://jasonchampagne.fr ◾ Discord: https://jasonchampagne.fr/discord ◾ Twitch:   / jachampagne   ◾ YouTube (personal):    / jasonchampagne   ◾ Twitter:   / jachampagne8   ◾ Facebook:   / jachampagne8   ◾ Instagram:   / jachampagne8   ◾ Snapchat:   / jachampagne8   🔵 Credits: Music provided by La Musique Libre Wontolla - Can You Feel Me (ft. Nathan Brumley):    • |Musique libre de droits| Wontolla - Can Y...   Wontolla:   / iamwontolla   Nathan Brumley:   / nathanbrumleysongwriter   THANK YOU FOR YOUR LOYALTY 💙! #CPP #polymorphism #interface