1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-19 04:52:13 +02:00

Merge pull request #105 from Jakehp/patch-3

annotations explanation
This commit is contained in:
Adam Bard
2013-07-05 11:49:21 -07:00

View File

@@ -337,6 +337,8 @@ class PennyFarthing extends Bicycle {
}
// You should mark a method you're overriding with an @annotation
// To learn more about what annotations are and their purpose
// check this out: http://docs.oracle.com/javase/tutorial/java/annotations/
@Override
public void setGear(int gear) {
gear = 0;