Тёмный
No video :(

Interfaces vs Abstract Classes / Inheritance | Programming concept overview 

ForlornU
Подписаться 2,2 тыс.
Просмотров 1,8 тыс.
50% 1

Video Content:
----------------------------------
0:00 - Intro
1:12 - Pseudocode Problem
2:39 - Inheritance Solution
4:21 - Interface Solution
5:36 - Differences
6:08 - Polymorphism
6:50 - Unity Example
10:51 - Abstract Functions
11:59 - Outro
------
While still learning and working in Godot, I decided to scratch this topic of my bucket list of programming topics.
In this video I discuss the differences between interfaces and inheritance, and when I would use one over the other. The first part of the video explains those concepts with pseudocode-examples
The second part of the video focuses on a real unity3d game project and why certain classes use inheritance and why others use interfaces.
In talking about these differences I didn't mention the specifics of that project enough I feel, the link for the GitHub link so you can download and look through it yourself is down below. I might make another video just to go through it in more detail
I hope you learned something or gained some insight, thank you for watching!
Link to the unity-project:
github.com/For...
You can buy me a coffee to make me code faster at:
www.buymeacoff...
#csharp #unity #coding #learning #net #interfaces #abstract #inheritance #gamedev #gamedevelopment

Опубликовано:

 

14 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@etistyle96
@etistyle96 2 месяца назад
thank you dude. I was wondering, what the difference between having an interface like IMakeSound MakeSound() and a TypeOfSound abstract class with an abstract Method MakeASound() that have multiple override MakeASound Child like CatSound : TypeOfSound, GongSound : TypeOfSound that would be referenced in the calss like : public Class Cat : { public TypeOfSound mySound initialization{ mySound = getComponent() }
@MarushiaDark316
@MarushiaDark316 8 месяцев назад
Lol, props for the IYeetable and FoxSounds. 😂😂😂
@omegakiller1495
@omegakiller1495 9 месяцев назад
I am not a GODOT developer. Hell i am not even a game developer. But this was really helpful to clear my thoughts about abstract and virtual functions :-)
@fabricehategekimana5350
@fabricehategekimana5350 8 месяцев назад
Thank you so much for your video. You have a really good understanding and implementation of inheritance. Nowaday people generally prefer composition (interface) over inheritance because so many mistakes where done with it. Some new language like Go and Rust got rid of inheritance because of that. But a thoughtful usage of it can help in code reuse Also a big thanks for explaining the difference between abstract methods and virtual function ! (I suscribed by the way)
@ForlornU
@ForlornU 8 месяцев назад
Thank you! They are tools like any other and part of being a programmer is selecting the right tool for the job 👍
@TotallyNotZoid
@TotallyNotZoid 9 месяцев назад
Great video! I love the video style, how do you make those code animations?
@ForlornU
@ForlornU 9 месяцев назад
Thanks, it's actually just a slide transition in PowerPoint called morph combined with some editing :)
@AbdullahGameDev
@AbdullahGameDev 9 месяцев назад
Great and informative video thanks for sharing this and keep it up bro👏
@ForlornU
@ForlornU 9 месяцев назад
Thank you for the support!
Далее
The Flaws of Inheritance
10:01
Просмотров 927 тыс.
20 Advanced Coding Tips For Big Unity Projects
22:23
Просмотров 174 тыс.
Does this sound illusion fool you?
24:55
Просмотров 501 тыс.
This Will Make Everyone Understand Golang Interfaces
21:03
Why I don't hate Singletons?
11:30
Просмотров 26 тыс.
Interfaces vs Abstract Classes
14:43
Просмотров 14 тыс.
C# is BETTER than GDScript but...
5:13
Просмотров 29 тыс.