Created
November 28, 2014 14:10
-
-
Save rupertbates/ad74e54d390f8db6b238 to your computer and use it in GitHub Desktop.
ArticleWithDisplayImage
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 class Article { | |
DisplayImage mainImage; | |
//Rest of the class declaration | |
public DisplayImage getMainImage(){ | |
//What happens if there is no main image on this article? | |
return mainImage; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment