Question: Which class can compile given these declarations?

  1. A
  2. B
  3. C
  4. D

Answer: The correct answer of the above question is Option D:D