The Gateway to Computer Science Excellence
+2 votes

Which of the following statements is correct?

  1. Every class containing abstract method must not be declared abstract
  2. Abstract class cannot be directly initiated with new operator
  3. Abstract class cannot be initiated
  4. Abstract class contains definition of implementations
in Others by Veteran (105k points)
retagged by | 1.1k views

2 Answers

+1 vote

C is true and hence the ans Abstract classes may not be instantiated

Option A false because 

A method that is declared as abstract and does not have implementation is known as abstract method.

Abstract classes are classes that contain one or more abstract methods.

Option D is false because :-

Anabstract method is a method that is declared, but contains no implementation.

Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.

Option B is not false either but A seems to be more appropriate

by Boss (48.8k points)
option B & C both are correct.

Abstract Class can directly  initiated with "new " operator.

Abstract class  can be initiated.
0 votes

Ans: B and C both are correct.

  1. Abstract class cannot be directly initiated with new operator
  2. Abstract class cannot be initiated
by Loyal (7.2k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,616 answers
102,348 users