Tuesday, January 17, 2012

What is the difference between Abstract Class and Interface?

What is the difference between Abstract Class and Interface?

Abstract class can have method implementation; interface can't. A class can implement many interfaces, but a class can only extend one Abstract class. Interface fields are constants (static final); Abstract class aren't: their values can be updated.

These are some differences I remember. Please add a comment if you find another one.



No comments:

Post a Comment

Please, before starting to comment, evaluate if what you want to write is useful, respectful and positive. A kid may read this also.

Give a good example!