Skip to content

Instantly share code, notes, and snippets.

View deepaksingh2801's full-sized avatar

Deepak Singh deepaksingh2801

View GitHub Profile
@nitindhar7
nitindhar7 / command_pattern_restautant_example.java
Created September 25, 2011 22:04
Command Pattern: Restaurant Example
// Client
class Customer {
// places an order (requesting a command)
}
// Command
class Order {
// waiter places this
}