June 8, 2002 - Multiple Inheritance of Interfaces
June 8, 2002 Multiple Inheritance of Interfaces Tips: June 2002
Yehuda Shiran, Ph.D.
|
interface FirstInter{
function printSomething();
}
interface SecondInter{
function printSomething();
}
The class myClass
implements both of these interfaces, providing the body of the printSomething()
function:
class myClass implements FirstInter, SecondInter {
function printSomething() {
print("This is something else");
}
}
To learn more about JScript .NET, go to Column 110, JScript .NET, Part IV: Inheritance.