java Interface with example

Publicado el: 15 febrero 2020
en el canal de: Java code&Decode
115
7

1) An interface is a specification of method prototype.
2) An interface contains 0 or more abstract methods.
3) All the methods as the interface are public and abstract by default.
4) An interface can also contain variables which are public, static and final by default.
5) We can not create an object to an interface.
6) But we can create a reference variable of interface type.
7) All the methods of the interface should be implemented in its implementation classes.
8) If any method is not implemented, then that class should be declared as ‘abstract’.
9) Interface reference can be used to refer to all the objects of its implementation classes. 10) Once an interface is written, any third party vendor can provide implementation classes. 11) An interface can not implement another implement.
12) An interface can extend another interface.
13) We can create classes in an interface.
14) A class can implement multiple interfaces.


En esta página del sitio puede ver el video en línea java Interface with example de Duración hora minuto segunda en buena calidad , que subió el usuario Java code&Decode 15 febrero 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 115 veces y le gustó 7 a los espectadores. Disfruta viendo!