How to use effectively Java Interfaces

no-image-656
How to use effectively Java Interfaces

Interfaces in Java language are used to define a reference type and consist of abstract methods,constant values and other nested reference types.Moreover,interfaces cannot be instsansiated and they can only be implemented by a concrete class or extened by another interface.While a class can extend only one class,it can implement more than one interfaces and in this way we can achieve multiple inheritance in Java Language.What we actually achive with interfaces is to define a certain behavior for the implementing class.In other words with interfaces we define what a class must do without telling anything about how to do it

Website Link Visit Link Here
Category
Author: Java-Only
Comments

ToolBox
  • October 25, 2013 9:47 am
  • Related Tutorials

    Subscribe to get this amazing EBOOK FREE

    By subscribing to this newsletter you agree to our Privacy Policy

    Skip to content