Prashnikaप्रश्निका
Code
About
‹ Back to the paper

Question 1(i)

1 mark

Computer ScienceISC 2022 Computer Science - Specimen paper (Semester 2), Paper 1MCQInheritance, Interfaces and Polymorphism

Choose the correct option.

The keyword used by a class to acquire the properties of an interface is:

  • (a)import
  • (b)implements
  • (c)extends
  • (d)include

Answer

Answer

Correct option: (b)

Answer: (b) implements A class uses the keyword implements to acquire (implement) an interface; extends is used for class inheritance.