Last active
June 16, 2020 06:49
-
-
Save zijianjoy/bda70d3ec5712ce21f86aadf2cfb7716 to your computer and use it in GitHub Desktop.
Article.java V1
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 { | |
private int articleId; | |
private String title; | |
private String content; | |
public Article(String title, String content) { | |
this.title = title; | |
this.content = content; | |
} | |
public void setArticleId(int articleId) { | |
this.articleId = articleId; | |
} | |
public int getArticleId(){ | |
return articleId; | |
} | |
public String getTitle() { | |
return title; | |
} | |
public String getContent() { | |
return content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment