Re: A question about interface
- From: Casper B <casper@xxxxxx>
- Date: Sat, 28 May 2005 00:51:59 +0200
Does this mean that every declaration of fields in an interface have the following only form
public static final meaning no other decarations are allowed.
Yes, because you can never instantiate an interface. An interface is only a contract that you agree to follow in your class. Often constants belonging to the business logic of the interface are included as a pseudo-enumeration.
/Casper .
- References:
- A question about interface
- From: Tony Johansson
- A question about interface
- Prev by Date: A question about interface
- Next by Date: Re: Reassigning an array of a class.
- Previous by thread: A question about interface
- Next by thread: Re: A question about interface
- Index(es):
Relevant Pages
|
|