2014-07-13 01:04:16 +02:00
|
|
|
//// [interfaceImplementation3.ts]
|
|
|
|
interface I1 {
|
|
|
|
iObj:{ };
|
|
|
|
iNum:number;
|
|
|
|
iAny:any;
|
|
|
|
iFn():void;
|
|
|
|
}
|
|
|
|
|
|
|
|
class C4 implements I1 {
|
|
|
|
public iObj:{ };
|
|
|
|
public iNum:number;
|
|
|
|
public iFn() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [interfaceImplementation3.js]
|
|
|
|
var C4 = (function () {
|
|
|
|
function C4() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
C4.prototype.iFn = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return C4;
|
|
|
|
})();
|