Next: Interface Implementation
Up: Java Notes
Previous: Inheritance 12: super 2
- Definition: protocols (agreed behaviour)
- Interface not same as Abstract Class (multiple inheritance, avoids class relationship between suppliers and users)
- Methods: abstract by default, no need to use
abstract
- Variables: static final (const); default ; no need to use
public static final; ``inherited'' by implementing class
- No
transient, volatile, synchronized in an interface member declaration; cannot use protected, private in interface members
- Interface: public access
Ananda Amatya
9/15/1999