Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

difference between class and interface

The basic difference is that a class has both a definition and an implementation whereas an interface only has a definition. Interfaces are actually implemented via a class. (Due to this an interface supports the concept of multiple inheritances.)
 
PREVIOUS NEXT
Tagged: #difference #class #interface
ADD COMMENT
Topic
Name
9+9 =