java Interface with example

Pubblicato il: 15 febbraio 2020
sul canale di: 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.


In questa pagina del sito puoi guardare il video online java Interface with example della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Java code&Decode 15 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 115 volte e gli è piaciuto 7 spettatori. Buona visione!