Learn C# Inheritance With Interfaces, Abstract Classes, & Virtual Methods

Learn C# Inheritance With Interfaces, Abstract Classes, & Virtual Methods

Renaissance Coders

7 лет назад

25,994 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Patrice
Patrice - 11.07.2022 12:31

Hi. In your parent class, if you have 3 VIRTUAL methods, is it mandatory to have 3 Overridden methods in Children classes ?

Ответить
Rejected Circuit Techno
Rejected Circuit Techno - 30.04.2022 12:23

Wow, thanks a million for this excellent tutorial!

Ответить
BehindTheFX
BehindTheFX - 23.08.2021 20:09

I still don't understand why would I use Interfaces & Abstract classes over normal Inheritance and virtual/override methods? Is it done just for the sole purpose of forcing me to do the implementation so that i don't forget? or am i missing something here?

Ответить
Yazuki Wolf
Yazuki Wolf - 11.03.2021 04:05

lol, watching in 2021 I moved down to give a thumbs up, only to then realize that I already gave a thumbs up in 2017

Ответить
GusTaVp
GusTaVp - 21.07.2020 23:40

why i dont find this channel two mouths ago

Ответить
Logan Barry
Logan Barry - 17.07.2020 16:14

i am in love with you now

Ответить
Papel
Papel - 25.06.2020 01:16

Thank you so much! This is exactly what I have been looking for--all the other tutorials all use oversimplified abstract classes or child classes as examples and only yours takes care of all different possible scenarios! ❤️

Ответить
Inflex Games
Inflex Games - 20.06.2020 22:12

so, you didn't add the enemy inheritance to the ogre? What if you don't want to use regenerate and runaway to one of the enemies?

Ответить
Camel Case
Camel Case - 16.04.2020 09:23

Question: why are protected vars in the base class only accessible through methods in the derived class

Ответить
Quadtych Gort
Quadtych Gort - 13.01.2020 16:38

Brilliant and cool video. Loved how you presented the information. Thanks for your time.

Ответить
Inder Jeet
Inder Jeet - 25.11.2019 19:14

Thankyou so so much for saving my life bro! It was such a helpful video, now my concepts are clear of inheritance, interfaces, use of abstract and virtual. Subscribe? Done.

Ответить
SinisterSquid
SinisterSquid - 20.06.2019 18:11

Excellent video on the subject! Thank you very much.

Ответить
Daily dose of chocolate
Daily dose of chocolate - 29.04.2019 09:01

Hi, Where can I find the code for this tutorial? for example that boolean method which determines unit reached target is interesting to me

Ответить
Ahmed teeka
Ahmed teeka - 13.04.2019 22:11

Awesome

Ответить
Uğur Sarı
Uğur Sarı - 12.03.2019 22:57

Best tut i've ever seen on the internet, i was stumbling with this for 4 days now, watching every tut i can find, this is the best one! thanks mate!

Ответить
Manga-R18
Manga-R18 - 18.01.2019 21:12

Sir you managed make me see further in inheritance. No one else freakin' said what was virtual and override used for. Even in paid courses. I cherish you to continue with what you are doing. You explain really well. Thumbs up +1 subs.

Ответить
Без Мільйонів у Канаді
Без Мільйонів у Канаді - 26.09.2018 01:36

Realy cant understand one serious thing, for ogre u use script monoBeh. Than you add in inspector concrete images and others. Than you showed foe us an Enemy-Undead, he have all vsriables and funcs from enemy parrent class, but on the inspector you see only vars that you add to undead, so you cant see the other "enemy vars", so how for example you set the right place for image? If i create a base class character and add vars for sliders, how can a asign this sliders to every chatacter that i have create?

Ответить
Herb
Herb - 22.06.2018 23:46

question: in unity when using public or serialized variables and you have multiple derived classes each script you place in the inspector asks for you to input those values. Is there a way to prevent this without making parameters in your methods?

Thanks

Ответить
Sujeet Sharma
Sujeet Sharma - 12.06.2018 19:13

please make video on c#.

Ответить
Lloyd Summers
Lloyd Summers - 07.06.2018 03:04

Great video, thanks for the video! I was hoping for a bit more depth on Abstract Classes and Interfaces - specifically if there is any advantage to using Interfaces versus normal Inheritance and what an Abstract Class offers versus an Interface. I may have missed it in the video, I did see abstract methods being used, but didn't seem to be used as a class. Anyway, great video either way thank you!

Ответить
Bred j0
Bred j0 - 03.05.2018 15:18

Very nice tutorial :). Thank you :)

Ответить
Pero Juric
Pero Juric - 22.01.2018 23:12

I kinda knew how Interfaces, abstract and virtual classes work, but every once in a while I need to remind myself. This tutorial is great because you can follow it no matter if it's completely new for you or you just need a reminder. Subbed, Thanx.

Ответить
Alex Strook
Alex Strook - 16.01.2018 19:05

That's an amazing tutorial !
What is the point of defining the whole parent class (enemy here) as an Abstract class ?

Ответить
Steffen S.
Steffen S. - 26.12.2017 13:06

very high quality video! You should put similar videos to Udemy. ;)

Ответить
FacePalmProductions
FacePalmProductions - 24.11.2017 02:45

Absolutely beautiful explanation and example. Thanks man!

Ответить
photonman54
photonman54 - 08.10.2017 09:12

undead is a hacker.

Ответить
Dorzai
Dorzai - 07.07.2017 01:12

Holy shit, this was the video that I've been looking for so long! You explain everything so well. Thank you!

Ответить
Romi Fauzi
Romi Fauzi - 22.05.2017 04:22

Awesome and very clear tutorial!

Ответить
Smonman
Smonman - 21.05.2017 18:42

Great tutorial!

Ответить
James Lavery
James Lavery - 21.05.2017 16:51

Thanks for showing this and making it simple to understand. Always appreciate your efforts.

Off topic: Is it possible to use scriptableobjects to define npc behaviors in this scenario? I've watched the Unity tank video on this, but it seems rather convoluted. This could be considered a video request for the future, if it appeals to you.

Thanks much.

Ответить
WHiP
WHiP - 21.05.2017 16:19

Thanks for the tutorial!

Ответить