Please help, I am having trouble with this kind of problem.
my class Exam
    private boolean status;
    private double price;
    String message = "Good luck";
my contructor for the class Exam
public Exam(String period, String level) {
    
}
public void setPrice(double p) {
    this.price = p;
}
public double getPrice() {
    return price;
}
public void setFinished(boolean f) {
    this.status = f;
}
public boolean isFinished() {
    return status;
}
class Midterm extends Exam {
        public Midterm(String period, String level) {
        super(period, level);
        System.out.println("Exam has started");
    }
}
Class Quiz that extends Exam
    public Quiz(String period, String level) {
        super(period, level);
    }
    
class Essay extends Quiz {
    public Essay(String period, String level) {
        super(period, level);
    }
    
}
    
}
public static void main(String[] args) {
    Exam e = new Exam("wew", "wew");
    
    
    System.out.println(e);
}
}
what I am getting here something like this asd.Exam@36baf30c what I want is to display the string I assigned
 
    