Link Details

Link 955795 thumbnail
User 1013753 avatar

By sonic0002
via pixelstech.net
Published: Apr 17 2013 / 10:24

When we write programs, we may often get into a situation where we don't know whether we should use Abstract class or Interface when we want to define an abstract object. These two are very similar and they are interchangeable. On Stackoverflow, this question is asked many times, it's related to many programming languages. Also in the official documentation of PHP regarding the Abstract class and Interface, people are arguing about this. To understand this question, we need to understand their differences and use scenarios.
  • 9
  • 1
  • 1031
  • 1080
User 187417 avatar

sproketboy replied ago:

0 votes Vote down Vote up Reply

In Java 8 you get best of both. Interface with default.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Upvoters (7)



Downvoters (1)



Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java