---
title: "Virtual Methods and Overriding"
content_type: tutorial
url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding?language=en"
language: en
difficulty: intermediate
duration_minutes: 15
unity_version:
  - "2019.3"
  - "2019.2"
  - "2019.1"
  - "2018.4"
  - "2018.3"
  - "2018.2"
  - "2018.1"
  - "2017.4"
  - "2017.3"
  - "2017.2"
  - "2017.1"
supported_unity_versions:
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2019.3"
  - name: "2019.2"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2019.2"
  - name: "2019.1"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2019.1"
  - name: "2018.4"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2018.4"
  - name: "2018.3"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2018.3"
  - name: "2018.2"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2018.2"
  - name: "2018.1"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2018.1"
  - name: "2017.4"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2017.4"
  - name: "2017.3"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2017.3"
  - name: "2017.2"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2017.2"
  - name: "2017.1"
    url: "https://learn.unity.com/tutorial/virtual-methods-and-overriding.md?language=en&version=2017.1"
last_updated: "2026-08-04T14:23:55.000Z"
---

# Virtual Methods and Overriding

Practice overriding inherited methods in a child class to implement polymorphic behavior in C# scripts.

In this tutorial, you will learn how to override an inherited method from within the child class. This is very useful for implementing polymorphism.

## 1. Virtual Methods and Overriding

[Video](https://connect-mediagw.unity.com/h1/20190530/videos/4ef54d3e-c3a7-47f0-89ef-7c20262b1ae7_10_Virtual_Methods_and_Overriding.mp4) ([Transcript (en)](https://connect-mediagw.unity.com/h1/20200226/3f6dfe1f-bc97-4ec9-8cc0-41a44e449dd0_10_Virtual_Methods_and_Overriding.vtt))
