Skip to content

Instantly share code, notes, and snippets.

@todorok1

todorok1/InheritCat.cs Secret

Created Jan 29, 2021
Embed
What would you like to do?
継承のサンプル
/// <Summary>
/// 猫クラスです。
/// </Summary>
public class Cat : Animal
{
protected override void 鳴く()
{
Debug.Log("にゃー!");
}
protected override void 移動する()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment