Created
January 26, 2019 15:44
-
-
Save ajaysjournal/85b0294555921a0927faf51e7fb5ee4a to your computer and use it in GitHub Desktop.
solid-designs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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