ch10 - Upd. With Interfac v2
ch10 - Upd. With Interfac v2
67 67
What is the common feature?????
68
To distinguish an interface from a class, Java uses the following syntax to define an
interface:
constant declarations;
04/28/20
The interface body contains method declarations for ALL the
methods included in the interface.
A method declaration within an interface is followed by a
semicolon (;)
An interface does not provide implementations for the
methods declared within it.
73