Inheritance and Polymorphism in C#, Unity Tutorial

preview_player
Показать описание
Learn how to write cleaner code and easily expand your Unity games using inheritance and polymorphism in C#! In this video, I'll guide you through the basics of class inheritance, the concept of overriding voids, and essential keywords like virtual, override, protected, abstract, and sealed. All of this will be demonstrated through a practical example where we'll create interactable objects for your game.

🌟 Support My Work and Unlock Exclusive Content! 🌟

🎮 Join Our Developer Community!

💖 Support Me Financially

Timestamps:

00:00 What Is Inheritance and Polymorphism?
00:50 Parent/Base Class Setup
02:16 Inheriting From Class
05:11 Accessor - Protected
06:03 1. Advantage of Using Inheritance
06:30 Override, Virtual
07:40 Calling Void On Parent Class - base
09:47 2. Advantage of Using Inheritance
10:50 Abstract, Sealed
12:10 Conclusion
Рекомендации по теме
Комментарии
Автор

YOU ARE A LEGEND!! THIS HELPED ME SO MUCH 😮😊❤

mirmn
Автор

nice walkthrough for inheritance in video games. Thanks!

Hiroki_MakeGames
visit shbcf.ru