X606: Define a constructor

Given the following class, create a constructor header that will take in a parameter for each field. You do not need to write code inside of the constructor.

Your Answer:

x
 
1
public class Course
2
{
3
  public int number;
4
  public String title;
5
  public String department;
6
  public int capacity;
7
8
  
9
}
10

Feedback

Your feedback will appear here when you check your answer.