JAVA-interface abstract class internal class Anonymous class, java-Anonymous
All the attributes in the interface are Public static final, and the method is public. The access modifier must be a public interface, and another interface can be extended. Similar to class inheritance, the keyword extends
Http://www.cnblogs.com/dolphin0520/p/3811437.html
A deep understanding of Java interfaces and abstract classes
Http://baike.baidu.com/view/2493204.htm interface-Oriented Programming
An interface is a method or function that is called by others and abstract behavior.
Inheritance is a "not" relationship, while interface implementation is "not.
(This is why Collection is confusing when I look at the Chapter of the container)
Interface callback refers to the ability to assign a reference to an object created using a class that implements an interface to the interface sound.
Interface variable, then this interface variable can call the method of the interface implemented by the class. In fact, when
When an interface variable calls a method in the interface implemented by the class, it is the method that notifies the corresponding object to call the interface.
This process is called the interface callback of the object function.
Cross-class reference
1) if a is A reference of Class a, A can point to an instance of Class. Or point to one of Class.
Sub-classes. This is the case of upward transformation.
2) if a is A reference of interface a, A must point to an instance of a class that implements interface. This is
Interface callback.
An abstract method is an abstract class. The abstract class can be directly defined as the abstract method; public abstract void func (...); The subclass can either be abstract or override abstract methods.
Anonymous class: in multi-thread mode, you must inherit an interface or implement a parent class anonymous object: when using new O () directly as a parameter or use its method. Http://www.cnblogs.com/nerxious/archive/2013/01/25/2876489.htmlThread tt = new Thread (new Runnable () {public void run () {System. out. println ("in thread ");}});
Internal class http://www.cnblogs.com/nerxious/archive/2013/01/24/2875649.html
An anonymous internal class is a special local internal class that implements interfaces through an anonymous class.
IA is defined as an interface.
Ia I = new IA (){};