Computer Science, asked by sanjeevkumars8672, 1 year ago

The modifier used to define a class which does not have objects of its own but acts as a base class for its subclass is? A) sealed b) static c) new d) abstract

Answers

Answered by Anonymous
3

The modifier used to define a class which does not have objects of its own but acts as a base class for its subclass is? A) sealed b) static c) new d) abstract

Answered by lovingheart
0

Answer:

Option D. Abstract class is the right answer.

Explanation:

sealed – This is a keyword which is used to define the class where this class cannot be inherited further. So, this choice is invalid

static – This is specified in the class definition to tell the programmer that this class variables and functions can be accessed without creating object.

new – this is a keyword which is used to create objects

abstract – This is a keyword used in the class definition to tell the programmer that this class has atleast one abstract method. But this class can be inherited and define the “abstract method” in the subclass.

Similar questions