EasyEnv
Engineering/कोर्स/कैटलॉग/TypeScript/Inheritance and Abstract Classes
TypeScript
शुरुआतीपाठ 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 पाठ
  1. 1Hello, TypeScript20 मिनट
  2. 2Type Basics25 मिनट
  3. 3Arrays and Tuples25 मिनट
  4. 4Object Types and Interfaces25 मिनट
  5. 5Functions25 मिनट
  6. 6Union and Literal Types25 मिनट
  7. 7Type Narrowing30 मिनट
  8. 8Type Aliases vs Interfaces20 मिनट
  9. 9Optional, Readonly, and Nullable25 मिनट
  10. 10Enums20 मिनट
  11. 11Generics30 मिनट
  12. 12Classes25 मिनट
  13. 13Inheritance and Abstract Classes25 मिनट
  14. 14Modules25 मिनट
  15. 15Utility Types30 मिनट
  16. 16Mapped and Conditional Types30 मिनट
  17. 17Declaration Files and Libraries25 मिनट
  18. 18tsconfig and the Compiler30 मिनट

अन्य कोर्स देखें

Inheritance and Abstract Classes - TypeScript (Hindi) | Engineering Courses