Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored Classes for Car Service System #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MiliyardMulugeta
Copy link

In this pull request, I've implemented the following changes:

  1. Introduced the Serviceable interface to ensure consistent service checks across different car parts.
  2. Refactored the Engine and Battery classes to align with the new design.
  3. Implemented specific engine and battery types with their unique service criteria.
  4. Used the composition over inheritance principle for the Car class, making it composed of different parts.
  5. Created the CarFactory class to abstract the car creation process.

These changes aim to make the codebase more modular, maintainable, and flexible. Please review and let me know if any adjustments are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant