Unity C# Programming for Dumb Dummies #5 (inheritance)

preview_player
Показать описание
Unity C# Programming for Dumb Dummies #5 (inheritance)
Hello Comrades, let's have a general overview of inheritance in Unity and C#.
You will learn a bit more about access modifiers, virtual functions, and class inheritance. As always if you have any questions - just ask. I know it might be a difficult concept for beginners, but it is also a very important one.

#inheritance #programming #unity3d #csharp #unity
Рекомендации по теме
Комментарии
Автор

As always if you have any questions - just ask. And Thanks for watching :)

NEOFDev
Автор

I would add that you should make Transport as abstract

amrsaleh
Автор

a none monobehaviour base probably would have made more sense so you could cover constructors of inherited classes.

JackPS
Автор

what if i want to access other cs file.
should i do this:
public OtherCsFile otherCsFile;
or
the one you do
public class MyFile : OtherCsFile
{
}

i only write my script in one file only.

skete
Автор

Start/UPdate etc should never be made public!

CyberAngel
join shbcf.ru