Skip to content
Permalink
Browse files
minor
  • Loading branch information
Jianhua Yang committed Oct 23, 2017
1 parent 2bbf5bd commit 8a2e97a4dbcfc4ea986536acba76d8ca3e3d606a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit 8a2e97a

Please sign in to comment.