|
June 8, 2002 Multiple Inheritance of Interfaces Tips: June 2002
Yehuda Shiran, Ph.D.
|
|
A class can extend only one base class in JScript .NET. A class, though, may implement multiple interfaces. This is also called multiple inheritance. In JScript .NET, multiple inheritance is supported only for interfaces. Here are two interfaces:
The class myClass implements both of these interfaces, providing the body of the printSomething() function:
To learn more about JScript .NET, go to Column 110, JScript .NET, Part IV: Inheritance.
People who read this tip also read these tips: Look for similar tips by subject: |