Asked by sarabjot singh on Jun 29, 2024

verifed

Verified

A class that implements an interface but only gives definitions for some of the method headings given in the interface is called a/an:

A) concrete class
B) abstract class
C) discrete class
D) friendly class

Implements

A keyword in Java used by classes to specify that they will provide implementations for the methods defined in an interface.

Interface

In programming, an interface is a reference type that defines a set of abstract methods that a class must implement.

Concrete Class

A class that has an implementation for all of its methods, as opposed to abstract classes which can contain unimplemented methods.

  • Familiarize with the syntax required to implement interfaces in classes, such as the use of `implements` keyword.
verifed

Verified Answer

IB
Isabelle BustamanteJul 02, 2024
Final Answer :
B
Explanation :
A class that implements an interface but only gives definitions for some of the method headings given in the interface is called an abstract class. An abstract class must have at least one abstract method, which is a method without a body. The remaining methods in the interface can have regular implementations in the class.