Last active
April 22, 2021 15:50
-
-
Save daichi-takezawa/95d082a07a6904aeae59c5b75bccc6c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//親クラス | |
void Start(){ | |
AddWords(); | |
} | |
public List < string > words = new List < string > (); | |
public virtual void AddWords() { | |
} | |
//子クラス | |
public override void AddWords() { | |
words.Add("Hi!"); | |
words.Add("Im historia"); | |
words.Add("Bye!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment