Which one of the following class declarations is a valid declaration of a class that cannot be

Question:

Which one of the following class declarations is a valid declaration of a class that cannot be instantiated?

Select the one correct answer.

(a) class Ghost { abstract void haunt(); }

(b) abstract class Ghost { void haunt(); }

(c) abstract class Ghost { void haunt() {}; }

(d) abstract Ghost { abstract void haunt(); }

(e) abstract class Ghost { abstract haunt(); }

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: