Unity Learn home
View Project Content

C# Survival Guide - Classes

Project
Intermediate
+60 XP
2 Hours40 Mins
(148)
Overview
Summary
In this project, you will learn about object-oriented programming. You will break functionality into modular classes, which in turn are broken into modular methods.
Project Objective
By the end of this project, you will:
  • Understand what constructors do
  • Serialize custom classes
  • Understand why custom classes are used and when to use them
  • Learn about inheriting methods and data members from parent classes
  • Use protected data members with inheritance
  • Understand and use virtual methods and override parent class methods
  • Understand when to inherit from MonoBehaviours
  • Understand and use structs; understand how they are different from classes
  • Understand the difference between passing by value and passing by reference
Select your Unity version
Last updated: April 18, 2021
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
Language
English