Skip to content

Instantly share code, notes, and snippets.

@rupertbates
Created November 28, 2014 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rupertbates/ad74e54d390f8db6b238 to your computer and use it in GitHub Desktop.
Save rupertbates/ad74e54d390f8db6b238 to your computer and use it in GitHub Desktop.
ArticleWithDisplayImage
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