Created
November 20, 2012 02:40
-
-
Save slimbo/4115577 to your computer and use it in GitHub Desktop.
Hit the Bits! - BugEaterCollection Example in C#
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
| class BugEaterCollection | |
| { | |
| public void addBugEater(BugEater bugEater) | |
| { | |
| // code goes here | |
| } | |
| } | |
| // Calling code can do this: | |
| addBugEater(new VenusFlyTrap()); | |
| addBugEater(new Aardvark()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment