Hướng dẫn thử thách
1 / 120
Abstract classes
### Giai đoạn: Nền Tảng & Khái Niệm Cốt Lõi
**Abstract classes**
Abstract classes in PHP are those which cannot be instantiated on their own. They are simply blueprints for other classes, providing a predefined structure. By declaring a class as abstract, you can define methods without having to implement them. Subsequent classes, when inheriting from an abstract class, must implement these undefined methods.
### Khái niệm cốt lõi:
1. **Abstract classes in PHP are those which cannot be instantiated on their own**
2. **They are simply blueprints for other classes, providing a predefined structure**
3. **By declaring a class as abstract, you can define methods without having to implement them**
### Tài liệu tham khảo chính thống:
- [Abstract Classes](https://www.php.net/manual/en/language.oop5.abstract.php) (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.cs
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵