Note - Object Oriented - Interface

interface

Keywords: Interface

Interface: the beginning of understanding, it can be considered a special abstract class

Interface members are public (may be omitted);

 

 

The interface is not possible to create the object, since abstract methods required to achieve subclasses, subclasses of the abstract method to cover the entire interface, subclasses can be instantiated.

The interface can be achieved multi-class, does not support multiple inheritance conversion ()

 

pubic class Interface 名{
}

Interface implementation class:

public child inplements father {}

Interface can be inherited:

class InterfaceA{}
class InertfaceB extends InterfaceA{}
class InertfaceC extends InterfaceB{}

 

Guess you like

Origin www.cnblogs.com/8060433www/p/11140005.html