title: Should i implement all the interfaces in one class or make one class for each one?
body: <p>I have an assignment to build a self evaluation test grader. The teacher gave us test interfaces:</p>
  
  <p><a href="https://i.stack.imgur.com/2LLNd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2LLNd.png" alt="Test interface UML diagram"></a></p>
  
  <p>and question interfaces:</p>
  
  <p><a href="https://i.stack.imgur.com/YIGFC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YIGFC.png" alt="Question interface UML diagram"></a></p>
  
  <p>to implement, and I don't know whether I'm supposed to implement them all in one class like this:</p>
  
  <pre><code>public class CQuestion implements IQuestion, IQuestionMultipleChoice,
          IQuestionNumeric, IQuestionYesNo,IQuestionMetadata {}
  
  public class CTest implements ITest,ITestStatistics {}
  </code></pre>
  
  <p>or whether I should do one class for each question type.</p>
  
  <p>I tried the first approach but I get errors because there are methods with the same name.</p>
  
  <p>I want try the second approach, but I don't know how to do it. I know I have to create a question object inside the test class, but I don't know whether I if have to create one object for each question type.</p>