Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. package main;
  2.  
  3. public class Component {
  4.  
  5.     private String description;
  6.  
  7.     public Component(String description) {
  8.         this.description = description;
  9.     }
  10.    
  11.     public String getDescription() {
  12.         return description;
  13.     }
  14.    
  15.     @Override
  16.     public String toString() {
  17.         return description;
  18.     }
  19.    
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement