coffeescriptã®class syntaxã§çæãããã³ã¼ãã¨ãtypescriptã®ããã¯ããäºãã«ç¶æ¿ã§ããäºæãããã¨è¨ããã¦ããã æ¬å½ã«äºæãããã®ãã¡ããã¨èª¿ã¹ãªãã¨ãããªããªã¼ã¨å¸¸ã æã£ã¦ãã®ã§ã確èªããã æ¤è¨¼ã³ã¼ã coffeescript class A f: -> console.log 'super' class B extends A f: -> super console.log 'sub' b = new B b.f() typescript class A{ f() { console.log('super'); } } class B extends A { f(){ super.f(); console.log('sub'); } } var b = new B; b.f() ãã£ã¦ããã¨ã¯å ¨ãä¸ç· ãããã¼ ç¶æ¿ãè¡ãã¨ã©ã¡ãããããã«ç¶æ¿ç¨ã¦
{{#tags}}- {{label}}
{{/tags}}