Multiple choice

Which of the following is/are difference(s) between class and interface? (a) Class can be instantiated, while interface cannot. (b) Class is a collection of data members and methods, while Interface consists of constants and method declarations. (c) Any class can extend another class using keyword extends, while interfaces are implemented using keyword implements.

  1. Only (a)

  2. Only (a) and (b)

  3. Only (b) and (c)

  4. All (a), (b) and (c)

  5. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All a,b and c are correct.