Skip to content

Instantly share code, notes, and snippets.

@ajaysjournal
Created January 26, 2019 15:44
Show Gist options
  • Save ajaysjournal/85b0294555921a0927faf51e7fb5ee4a to your computer and use it in GitHub Desktop.
Save ajaysjournal/85b0294555921a0927faf51e7fb5ee4a to your computer and use it in GitHub Desktop.
solid-designs
public interface Human {
publi void eat();
}
public class HumanoidRobot extends Human {
// can robot eat ?
}
Human obj1 = new Human()
Human obj2 = new HumanoidRobot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment