Jumat, 13 Januari 2017

What is the difference between interface and class in Java Programming

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 as it is not possible in interfaces. Classes can contain variables, where as it is not possible in interfaces. Some classes can be final, where as interfaces cannot be declared as final. Some classes can be abstract, where as interfaces cannot be declared as abstract. Various access specifiers like public or private or default can be applied to classes, where as only public or default access specifier is applicable for top-level interface.   Defining an Interface The definition of an interface is very much similar to

The post What is the difference between interface and class in Java Programming appeared first on Coding Security.


What is the difference between interface and class in Java Programming
read more

Tidak ada komentar:

Posting Komentar