Thursday, February 17, 2011

Some differences between abstract classes and interfaces



One major difference is that you don’t have to implement all the methods in the abstract classes, unless all the methods are declared abstract.

In an interface all the methods are abstract hence they would have to be implemented in the class that implements the interface. Also there can be no variables and method bodies where as in an abstract class you can have methods with method bodies(implementation)

No comments:

Post a Comment

Retrieving Calendar of a Bookable Resource in Dynamics

There are occasions where we need to retrieve working days and working times of a resource in Dynamics grammatically. This is quite possible...