August 2004
Intermediate to advanced
480 pages
9h 41m
English
You have to do two things to implement an interface. You have to announce that your class will implement the interface in your class declaration, like this:
public class SuperHero implements IFly {...}
Then, you have to implement each method defined in an interface. Most IDEs, including Eclipse, will tell you the names of the methods you need to implement as a convenience. Note that whether you have implemented each method you're supposed to is checked at compile time, not at runtime.
|
Read now
Unlock full access