https://github.com/abdo-essam/librarysystem
A simple library system in Dart that manages borrowed and returned books.
https://github.com/abdo-essam/librarysystem
Last synced: about 1 year ago
JSON representation
A simple library system in Dart that manages borrowed and returned books.
- Host: GitHub
- URL: https://github.com/abdo-essam/librarysystem
- Owner: abdo-essam
- Created: 2024-12-21T20:35:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-21T20:43:46.000Z (over 1 year ago)
- Last Synced: 2025-02-14T15:15:16.373Z (over 1 year ago)
- Language: Dart
- Size: 335 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dart Library System
This Dart program implements a simple library system to manage borrowed and returned books.
## How to Run
1. Ensure you have Dart installed on your machine.
2. Clone the repository.
3. Navigate to the project directory.
4. Run the program using the command: `dart library_system.dart`
## Code Explanation
- `Book`: Represents a book with attributes `id`, `title`, and `borrowed`.
- `User`: Represents a library user with attributes `id` and `name`.
- `Library`: Manages books and users, with methods to add, borrow, return books, and display information.
- The `main` function demonstrates adding books and users, performing operations, and displaying the final state.
## Output
