- Hands-On Full Stack Web Development with Angular 6 and Laravel 5
- Fernando Monteiro
- 127字
- 2021-07-23 19:18:50
Understanding interfaces, classes, and generics in TypeScript
Object-Oriented Programming (OOP) is a very old programming concept, used in languages such as Java, C#, and many others.
One of the advantages of using TypeScript is being able to bring some of these concepts into your JavaScript web applications. In addition to being able to use classes, interfaces, and more, we can easily extend import classes and import modules, as we will see in the coming examples.
We know that using classes in pure JavaScript is already an option, with the use of ECMAScript 5. Although it is similar, there are some differences; we will not address them in this chapter, so that we do not confuse our readers. We will only focus on the implementations adopted in TypeScript.
推薦閱讀
- RCNP實(shí)驗(yàn)指南:構(gòu)建高級(jí)的路由互聯(lián)網(wǎng)絡(luò)(BARI)
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門到精通
- 農(nóng)產(chǎn)品物聯(lián)網(wǎng)研究與應(yīng)用
- 物聯(lián)網(wǎng)概論(第2版)
- 局域網(wǎng)組建、管理與維護(hù)項(xiàng)目教程(Windows Server 2003)
- 正在爆發(fā)的互聯(lián)網(wǎng)革命
- 雷達(dá)饋線技術(shù)
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- OMNeT++與網(wǎng)絡(luò)仿真
- TD-LTE無線網(wǎng)絡(luò)規(guī)劃與設(shè)計(jì)
- 夢(mèng)工廠之材質(zhì)N次方:Maya材質(zhì)手冊(cè)
- 局域網(wǎng)組成實(shí)踐
- 智慧城市中的物聯(lián)網(wǎng)技術(shù)
- SEO攻略:搜索引擎優(yōu)化策略與實(shí)戰(zhàn)案例詳解
- 智慧的物聯(lián)網(wǎng):感知中國(guó)和世界的技術(shù)