Advanced Inheritance & Polymorphism - example with Array of Objects (in-depth Data Structures & OOP)
CodeBeauty CodeBeauty
274K subscribers
17,372 views
0

 Published On Premiered Aug 16, 2023

This video provides an in-depth explanation of the relationship between Arrays of objects and OOP concepts such as Inheritance and Polymorphism. It is a programming tutorial designed to teach you about data structures, object-oriented programming, and best practices for writing code. Through a practical example, you will learn how to create arrays that hold a collection of different objects. By the end of this coding exercise, you will have a solid understanding of how to implement parent-child relationships between classes and write reusable code. Additionally, you will learn how to implement polymorphic behavior and write efficient code.
To put your knowledge into practice, I have also prepared a practical task for you. This hands-on challenge will ensure that you understand these concepts and are able to use them in your own programming projects.

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: https://bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: https://bit.ly/FreeObjectPascalEbook

🚀📈💻🔥 My Practical Programming Course: https://www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. Use the link to make a contribution: https://bit.ly/CodeBeauty_BuyMeACoffee
However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

Related videos:
Array Data Structure (for absolute beginners) -    • DATA STRUCTURES - How to work with ar...  
Array of Objects Introduction -    • Arrays of objects - Introduction (Dat...  
Dynamic Array of Objects -    • Dynamic Arrays of Objects (Data Struc...  
Classes and Objects for Beginners -    • C++ OOP - Introduction to classes and...  
Inheritance for beginners -    • C++ OOP - What is inheritance in prog...  
Virtual functions, pure virtual functions, and abstract classes -    • Relationship between Virtual Function...  
Polymorphism for beginners -    • C++ OOP - What is polymorphism in pro...  

CONTENTS:
00:00 - What you will learn in this video?
02:06 - Explaining initial code
03:33 - What is Inheritance?
03:52 - Inheritance implementation
06:48 - What are virtual methods and abstract classes?
09:37 - What is polymorphism?
10:39 - Polymorphism implementation
15:23 - Memory deallocation
16:26 - How to deallocate memory?
17:48 - Static code analyzer
18:35 - Practical task for you
21:18 - Bloopers

🎁 Download PVS-Studio for free & analyze your code: https://bit.ly/PVS-StudioFreeCB1

Add me on:
Instagram 📸 -   / truecodebeauty  
Twitter 🐦-   / truecodebeauty  

******CODE IS IN THE COMMENTS******

show more

Share/Embed