1. The main class- midterm exam.
2. The return method has its own class.
The first method is listing someone's details eg; name,weight and height and the other method is like answering the first method. If the person is healthy or unhealthy. This helps in knowing the BMI of the person.
The second method is getting the BMI of the person whose details are listed down on the first method.