daily pastebin goal
25%
SHARE
TWEET

Untitled

Bobybee Mar 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.io.Serializable;
  2.  
  3. public class Graph implements Serializable{
  4.  
  5.     private String name;
  6.     private String description;
  7.     private String definition;
  8.     private String image;
  9.  
  10.     public Graph(String name, String description, String definition, String image){
  11.         this.name = name;
  12.         this.description = description;
  13.         this.definition = definition;
  14.         this.image = image;
  15.     }
  16.  
  17.     public Graph(String name, String definition, String image)
  18.     {
  19.         this.name = name;
  20.         this.definition = definition;
  21.         this.image = image;
  22.     }
  23.  
  24.     public void setName(String name) {
  25.         this.name = name;
  26.     }
  27.  
  28.     public String getName() {
  29.         return name;
  30.     }
  31.  
  32.     public void setDescription(String description) {
  33.         this.description = description;
  34.     }
  35.  
  36.     public String getDescription() {
  37.         return description;
  38.     }
  39.  
  40.     public String getDefinition() {
  41.         return definition;
  42.     }
  43.  
  44.     public void setDefinition(String definition) {
  45.         this.definition = definition;
  46.     }
  47.  
  48.     public String getImage() {
  49.         return image;
  50.     }
  51.  
  52.     public void setImage(String image) {
  53.         this.image = image;
  54.     }
  55.  
  56.     @Override
  57.     public String toString(){
  58.         return "Graph (" + name + ", " + description + ", " + definition + ", " + image +")";
  59.     }
  60. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top