Selasa, 25 April 2017

How to use interfaces in your java code

An interface is a collection of method prototypes (method name followed by parameters list without any body). The syntax of a method prototype is as follows: return-type  method-name(parameters-list); An interface can contain only constants and method prototypes. The use of an interface is to abstract the class’ behavior from its definition. In this way an interface can specify a set of method prototypes which can be implemented by one or more classes.   Differences between interface and a class Objects can be created for classes, where as it is not possible for interfaces. Classes can contain methods with body, where

The post How to use interfaces in your java code appeared first on Coding Security.


How to use interfaces in your java code
read more

Tidak ada komentar:

Posting Komentar