Skip to content

Instantly share code, notes, and snippets.

@BrayanZ
Created June 10, 2013 05:59
Show Gist options
  • Save BrayanZ/5746804 to your computer and use it in GitHub Desktop.
Save BrayanZ/5746804 to your computer and use it in GitHub Desktop.
interface IEmployee {
public void work();
public void eat();
}
class Employee implements IEmployee{
public void work() {
}
public void eat() {
// ...... eating in launch break
}
}
class AnotheKindOfEmployee implements IEmployee{
public void work() {
}
public void eat() {
//.... eating in launch break
}
}
class Manager {
IEmployee employee;
public void setEmployee(IEmployee employee) {
this.employee=employee;
}
public void manage() {
worker.work();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment