From 8a2e97a4dbcfc4ea986536acba76d8ca3e3d606a Mon Sep 17 00:00:00 2001 From: Jianhua Yang Date: Mon, 23 Oct 2017 15:11:44 +0100 Subject: [PATCH] minor --- Week_02_The_Java_language/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week_02_The_Java_language/README.md b/Week_02_The_Java_language/README.md index 041aab3..3bd92a5 100644 --- a/Week_02_The_Java_language/README.md +++ b/Week_02_The_Java_language/README.md @@ -589,7 +589,7 @@ Now cenes are set up, we're ready to explore inheritance in java: * 'implements' defines a relationship between a class (Diesel) and an interface (Vehicle.Controllable). The interface method the class implementsmust be public. In our case, we must have `public void control()` and it cannot be `void control()` * Note the super keyword in the control() method, this is similar to 'this' keyword -- i.e. it refers to the superclass in the hierarchy. If wedon't user the super keyword in our case `super.getMessage()`, we'll end up with infinite loops as the default behavior is to call `this.getMessage(`. - > If you remove 'super' in control() method and run your app, what happens? + > If you remove 'super' in control() method and run your app, what happens? 4. Next, you need to link the layout with classes. Go back to MainActivity.java and insert variable declarations