Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

interfaces are used as

 It is used to achieve total abstraction.
 Since java does not support multiple inheritance in case of class, but by using interface it can achieve multiple inheritance .
 It is also used to achieve loose coupling.
 
PREVIOUS NEXT
Tagged: #interfaces
ADD COMMENT
Topic
Name
3+1 =