Mega Code Archive

 
Categories / Java Tutorial / Class Definition
 

Fields and Methods in an Interface

Fields in an interface must be initialized and are implicitly public, static, and final. You declare methods in an interface just as you would in a class. Methods in an interface do not have a body. All methods are implicitly public and abstract interface Conversions{   double inchesToMillimeters(double inches); }