Question discussion

Which of the following statements about an abstract class in Java is correct?

2318Medium DSSSB TGT Computer Science 0 replies 1 views
0

Which of the following statements about an abstract class in Java is correct?

  • AIt must contain at least one abstract method
  • BIt cannot have a constructor
  • CIt cannot be instantiated directly using the new operator
  • DIt cannot contain any non-abstract method
Correct answer: C

Explanation

An abstract class cannot be instantiated directly, but it may have constructors, concrete methods and even no abstract method at all.

Discussion 0

Nobody has replied yet. Start the discussion!