- Home /
Question by
ina · Jan 02, 2018 at 02:14 AM ·
monobehaviouroop
oop - virtual methods for Update() and Start() and other monobehaviour methods
What does adding the virtual modifier do exactly to virtual void Update() - and other monobehaviour methods for example?
Comment
Answer by Tespy · Jan 02, 2018 at 02:27 AM
It makes it so you can override them in classes that inherit from whatever class you put the virtual modifiers in. It's a part of inheritance.
https://www.tutorialspoint.com/csharp/csharp_inheritance.htm https://www.tutorialspoint.com/csharp/csharp_polymorphism.htm
Your answer
