Java Best Practices | Code for Interface Not for Implementation | PART-1

Pubblicato il: 30 marzo 2020
sul canale di: Java Guides
12,295
210

Welcome to Java best practices series. In Part 1, we will learn how to code for interface, not for implementation with an example.

Java best practices playlist at    • Java Best Practices  .

Always program for the interface and not for application; this will lead to flexible code that can work with any new implementation of the interface.

So use interface type on variables, return types of method or argument type of methods in Java.

Read a blog post on my website at https://www.javaguides.net/2020/03/co...


#javabestpractices #javaguides #oops #java


In questa pagina del sito puoi guardare il video online Java Best Practices | Code for Interface Not for Implementation | PART-1 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Java Guides 30 marzo 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 12,295 volte e gli è piaciuto 210 spettatori. Buona visione!