Created
January 26, 2019 15:45
-
-
Save ajayverse404/bf21a3cc8bbce38ef3bc4ac90109806a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
| // Humanoid Robot - A humanoid is something that has an appearance | |
| // resembling a human without actually being one. | |
| // can robot eat ? No | |
| @override | |
| publi void eat() { | |
| // do nothing | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment