when i print the value of sentiment it gives me this value why? Sentiment@1540e19d Sentiment@677327b6
public class Sentiment extends Sample{
public String value;
public Sentiment(String val){
value = val;
}
}
in main class
Sentiment positive = new Sentiment("+");
Sentiment negative = new Sentiment("-");
System.out.println(positive);
System.out.println(negative);