Why Interfaces?

Why interfaces have Methods of type public & abstract only and Variables of type public, static & final only?. Also why no constructors?
[158 byte] By [aska] at [2007-9-24]
# 1

I really don't think this general java question should be asked an a mobile subforum...

> Why interfaces have Methods of type public &

> abstract only and Variables of type public, static &

> final only?. Also why no constructors?

Methods: private and protected methods are useless in an interface, since the class using the interface will not be able to use it

Variables: same thing

Constructor: An interface has nothing to construct, so therefore there is no constructor.

deepspacea at 2007-7-13 > top of java,Java Mobility Forums,Java ME Technologies...