Home Segments Top Top Previous Next

364: Mainline

In general, you can declare an interface variable. You cannot, however, call any of a class's methods that are not specified in the interface.

Thus, you can use an interface not only to require definitions for methods specified in the interface, but also to prevent deployment of methods that are not specified in the interface.