Created
December 29, 2017 04:36
-
-
Save nikhilbansal97/1d622a13900d5ebfdbb4ad80e9403a45 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
package com.example.nikhil.popularmovies; | |
public class Movie { | |
// Store the id of the movie poster | |
private int mImageDrawable; | |
// Store the name of the movie | |
private String mName; | |
// Store the release date of the movie | |
private String mRelease; | |
// Constructor that is used to create an instance of the Movie object | |
public Movie(int mImageDrawable, String mName, String mRelease) { | |
this.mImageDrawable = mImageDrawable; | |
this.mName = mName; | |
this.mRelease = mRelease; | |
} | |
public int getmImageDrawable() { | |
return mImageDrawable; | |
} | |
public void setmImageDrawable(int mImageDrawable) { | |
this.mImageDrawable = mImageDrawable; | |
} | |
public String getmName() { | |
return mName; | |
} | |
public void setmName(String mName) { | |
this.mName = mName; | |
} | |
public String getmRelease() { | |
return mRelease; | |
} | |
public void setmRelease(String mRelease) { | |
this.mRelease = mRelease; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment