Unity Learn home
View Tutorial Content

Inheritance and polymorphism in object-oriented programming

Tutorial
Foundational
+10 XP
20 Mins
(3343)
Overview
Live
Summary
In this tutorial, you’ll learn about inheritance and polymorphism, two closely related pillars of OOP.
  • Explain how inheritance is used to share functionality between a parent and child class
  • Define the relationship between a parent and child class, including what a child class can and cannot do with respect to its parent class.
  • Recognize opportunities where inheritance could be used to simplify code.
  • Describe how polymorphism is used to modify parent class functionality in a child class
  • Describe how polymorphism can be applied at compile time (method overloads) and run time (method overrides).
  • Recommend a high-level system architecture for a given project
Select your Unity version
Last updated: January 03, 2024
2022.3
2022.2
2022.1
2021.3
2021.2
2021.1
2020.3
Language
English
Inheritance and polymorphism in object-oriented programming