Last active
November 8, 2016 00:29
-
-
Save BumpeiShimada/c0b21c76d81cbb4d5cdb3b32694f7b7a to your computer and use it in GitHub Desktop.
スーパークラスとサブクラスについての最低限のまとめ ref: http://qiita.com/BumpeiShimada/items/938cdee35d0a213434a3
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
abstract class Player { | |
public abstract void play(); | |
public void loop(int n) { | |
for (int i = 0; i < n; i++) { | |
play(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment