- 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.
推薦閱讀
- FreeSWITCH 1.2
- 物聯(lián)網(wǎng)智慧安監(jiān)技術(shù)
- 物聯(lián)網(wǎng)安全(原書第2版)
- 從區(qū)塊鏈到Web3:構(gòu)建未來互聯(lián)網(wǎng)生態(tài)
- Spring Boot 2.0 Projects
- 物聯(lián)網(wǎng)安全與深度學(xué)習(xí)技術(shù)
- 射頻通信系統(tǒng)
- 物聯(lián)網(wǎng)與無線傳感器網(wǎng)絡(luò)
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)
- 夢工廠之材質(zhì)N次方:Maya材質(zhì)手冊
- Learning Storm
- 網(wǎng)絡(luò)綜合布線(第2版)
- Dart Cookbook
- 5G非正交多址接入技術(shù):理論、算法與實(shí)現(xiàn)
- Guide to NoSQL with Azure Cosmos DB