Hướng dẫn thử thách
1 / 93
Abstract Classes
### Giai đoạn: Nền Tảng & Khái Niệm Cốt Lõi
**Abstract Classes**
An abstract class is a class that cannot be instantiated directly. Its primary purpose is to define a blueprint for other classes. It can contain abstract methods (methods without implementation) and concrete methods (methods with implementation). Subclasses must provide concrete implementations for all abstract methods inherited from the abstract class, unless the subclass is also declared abstract. This ensures that subclasses adhere to a specific interface or contract.
### Khái niệm cốt lõi:
1. **An abstract class is a class that cannot be instantiated directly**
2. **Its primary purpose is to define a blueprint for other classes**
3. **It can contain abstract methods (methods without implementation) and concrete methods (methods with implementation)**
### Tài liệu tham khảo chính thống:
- [Abstract Classes](https://www.typescriptlang.org/docs/handbook/2/classes.html#abstract-classes-and-members) (official)
Nhiệm vụ của bạn
Viết giải pháp của bạn cho bài học **Abstract Classes** vào trình soạn thảo bên cạnh. Bấm **Chạy Thử Nghiệm** (hoặc nhấn `Ctrl+Enter`) để thực thi và ghi nhận hoàn thành kỹ năng trên Roadmap.
### Kỹ năng cần đạt:
- `Abstract`
- `Classes`
- `Engineering`
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.ts
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵