शुरुआतीपाठ 13 / 1825 मिनट · हैंड्स-ऑन
Inheritance and Abstract Classes
TypeScript कोर्स का हिस्सा
आपने किसी पेमेंट सिस्टम के लिए तीन क्लास लिखी हैं: CardPayment, BankTransfer और Voucher। तीनों में एक amount, एक currency और एक createdAt है। तीनों में एक describe() मेथड है जो उन तीनों फ़ील्ड को हूबहू एक तरह छापता है। इनमें असली फ़र्क़ बस इतना है कि process() कॉल करने पर क्या होता है।
तो हर फ़ाइल का लगभग सत्तर प्रतिशत बाक़ी दोनों की नक़ल है। किसी एक describe() में फ़ॉर्मेटिंग का बग ठीक कीजिए और आपने बग का एक तिहाई हिस्सा ठीक किया है। ...
असली माहौल में TypeScript Inheritance and Abstract Classes सीखना चाहते हैं?
नीचे क्लिक करें, TypeScript के साथ तैयार एक Linux मशीन पाएँ, और AI ट्यूटर के साथ Inheritance and Abstract Classes पर हाथ-से-काम करें जो आपका कोड जानता है।
यह पाठ शुरू करेंInheritance and Abstract Classesआप क्या सीखेंगे
- Extends keyword
- Super calls
- Method override
- Abstract classes
- Abstract methods
- Implements with interface
यह पाठ अपनी भाषा में पढ़ें
इस कोर्स के सभी पाठ
18 पाठ- 1Hello, TypeScript20 मिनट
- 2Type Basics25 मिनट
- 3Arrays and Tuples25 मिनट
- 4Object Types and Interfaces25 मिनट
- 5Functions25 मिनट
- 6Union and Literal Types25 मिनट
- 7Type Narrowing30 मिनट
- 8Type Aliases vs Interfaces20 मिनट
- 9Optional, Readonly, and Nullable25 मिनट
- 10Enums20 मिनट
- 11Generics30 मिनट
- 12Classes25 मिनट
- 13Inheritance and Abstract Classes25 मिनट
- 14Modules25 मिनट
- 15Utility Types30 मिनट
- 16Mapped and Conditional Types30 मिनट
- 17Declaration Files and Libraries25 मिनट
- 18tsconfig and the Compiler30 मिनट
अन्य कोर्स देखें
Python
19 पाठ · 9.3घं
Go
20 पाठ · 12.3घं
React
17 पाठ · 10.2घं
लिनक्स
17 पाठ · 8.5घं
Docker
13 पाठ · 6.6घं
Git
13 पाठ · 5.9घं
Kubernetes
14 पाठ · 8घं
Ansible
12 पाठ · 6.1घं
Bash
12 पाठ · 5.7घं
Helm
10 पाठ · 5.4घं
GitLab CI
11 पाठ · 5.8घं
Jenkins
11 पाठ · 5.3घं
PostgreSQL
14 पाठ · 7.6घं
MySQL
13 पाठ · 6.8घं
वेब
14 पाठ · 5.9घं
Vibe Coding
12 पाठ · 5.8घं
Prompt Engineering
11 पाठ · 6.2घं
Vibe Coding: मूलभूत बातें
12 पाठ · 4.5घं
Vibe Coding: Prototype से Production तक
12 पाठ · 5.5घं
Vibe Coding: Multi-Agent इंजीनियरिंग
12 पाठ · 5.3घं
Vibe Coding: उन्नत इंजीनियरिंग
12 पाठ · 7.3घं
