Skip to content

Instantly share code, notes, and snippets.

@zehan12
Created October 18, 2024 20:27
Show Gist options
  • Select an option

  • Save zehan12/be5a2c6ed21c15e87152945c79ca7235 to your computer and use it in GitHub Desktop.

Select an option

Save zehan12/be5a2c6ed21c15e87152945c79ca7235 to your computer and use it in GitHub Desktop.
class DeliveryService {
deliverOrder() {
console.log("Delivering order...");
}
}
class PaymentService {
processPayment() {
console.log("Processing payment...");
}
}
class RatingService {
rateCustomer() {
console.log("Rating customer...");
}
}
const delivery = new DeliveryService();
delivery.deliverOrder(); // Delivering order...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment