News
Home > News > Content

PEUGEOT Interface The Difference With Other Interfaces

An identity interface is an interface with no methods or attributes.The identity interface does not have any semantic requirements for implementing its classes, and it simply indicates that the class that implements it belongs to a particular type.

The difference with other interfaces is that there are no methods in this interface, just tags.

Identify the interface in the Java language has some pretty famous applications, such as Java. IO. Serializablejava. Rmi. Remote interfaces is identified.

Identity interfaces are typically used in tool classes and are rarely used elsewhere.

The identification interface is the interface of the empty method, and the difference is that there is no method in this interface, just the tag.For example, serilizeabled is an interface that just tells the JVM that the CLASS that inherits from this interface needs to be serialized, and that we don't have to implement this interface at all.

An identity interface is an interface to an empty method.

The difference with other interfaces is that there are no methods in this interface, just tags.For example, serilizeabled is an interface that just tells the JVM that the CLASS that inherits from this interface needs to be serialized and that we don't have to implement the method of this interface

The so-called identification type pattern is a semantic constraint on the food parameters that are passed to the eat method by means of the Java compiler.The Food interface is referred to as the identity type interface, which has no methods and represents only an abstract type.In the JDK, there are two typical presentation type interfaces.

Java.io. Serializable interface: instances of classes that implement this interface can be serialized

Java.io. Remote interface: instances of classes that implement this interface can be used as Remote objects

We can use the interface as the highest level of abstraction in the system.From the perspective of the external user (another system), the interface provides the user with what services the system can provide;From the perspective of the system itself, the interface specifies which services the system must implement.Interaction between systems through interfaces increases the loose coupling between systems.

As for the abstract class, it is used to customize the extension points in the system.Abstract classes can be viewed as intermediate objects between "abstract" and "implementation".The abstract class does some of the implementation as far as it can, but there are still some functions that need to be subclassed.


Feedback
This is Shenzhen Navinterface Technology Co.,Ltd, If you have any questions, requests, etc., please feel free to use this form to contact us. All your comments and suggestions are welcome.
Contact us

Shenzhen Navinterface Technology Co.,Ltd

Tel: +86-755-2788 8592

E-mail: salesa@navinterface.com

Skype: happysophia8686

WhatsApp: +86 158 1371 3072

QQ: 1767712457

Copyright © Shenzhen Navinterface Technology Co.,Ltd. All rights reserved.