Saturday, October 25, 2014

Type of Interface

An interface is useful for describing the intended list of methods and properties that are expected to be implemented by the derived class. There is no implementation code as part of an interface.


On the other hand, an abstract class can implement private methods and private properties, and also declares methods and properties that must be implemented. Note that a derived class can only use one class derivation but can declare multiple interfaces.


No comments:

Post a Comment