Last active
September 16, 2016 14:39
-
-
Save MBtech/e7ba71b4f919a36da886b449eafc51c4 to your computer and use it in GitHub Desktop.
TestGist
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
class Dog { | |
public static void bark() { | |
System.out.print("woof "); | |
} | |
} | |
class Basenji extends Dog { | |
public static void bark() { } | |
} | |
public class Bark { | |
public static void main(String args[]) { | |
Dog woofer = new Dog(); | |
Dog nipper = new Basenji(); | |
woofer.bark(); | |
nipper.bark(); | |
} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment