All objects in .NET derive (explicitly or implicitly) from the System.Object class. Classes can derive from other classes that are derived from other classes... and so on. Take the
System.Web.UI.WebControls.DataGrid for example:
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.BaseDataList
System.Web.UI.WebControls.DataGrid
The DataGrid class is one class that only inherits 1 class. But the inheritance chain goes back 4 classes until it reaches System.Object. This does not mean that the class is derived from more than one class.
On the other hand, take the
System.Collections.Specialized.StringCollection class:
System.Object
System.Collections.Specialized.StringCollection
Public Class StringCollection
Implements IList, ICollection, IEnumerable
This class derives from System.Object alone, but implements 4 interfaces.
-
Peter