DHEERAJ Kumar
DHEERAJ Kumar asked Mark Seemann:

In one of your article, you provided a reference which said Assuming Interface as contract is a myth. Well I did assume so, and when I went through further explanation of how an interface should be used the question which came in my mind is Can an abstract class not do everything else(other than providing contract) what Interface can provide. If you could provide some details to this, it would be very kind of you?

Mark Seemann Hi DHEERAJ Kumar, thank you for writing. I'm going to assume that you refer to this original article: http://blog.ploeh.dk/2010/12/02/Inter...

Be sure to also read the linked article by Krzysztof Cwalina: https://blogs.msdn.microsoft.com/kcwa...

As far as I can tell, interfaces and abstract classes are isomorphic to each other: http://blog.ploeh.dk/2018/02/19/abstr...

Some restrictions are required in order to make that claim truthful. These are covered by the discussion in the comments section on the same page.

HTH

About Goodreads Q&A

Ask and answer questions about books!

You can pose questions to the Goodreads community with Reader Q&A, or ask your favorite author a question with Ask the Author.

See Featured Authors Answering Questions

Learn more