Examveda
Examveda

Which of the following class definitions defines a legal abstract class?

A. class A { abstract void unfinished() { } }

B. class A { abstract void unfinished(); }

C. abstract class A { abstract void unfinished(); }

D. public class abstract A { abstract void unfinished(); }

Answer: Option C


This Question Belongs to Java Program >> Interfaces And Abstract Classes

Join The Discussion

Comments ( 2 )

  1. Yashwant Kumar
    Yashwant Kumar :
    1 year ago

    class keyword should always be after abstract keyword

  2. SHANMUKH CHANDRA
    SHANMUKH CHANDRA :
    4 years ago

    why can't i make the abstract class with public specifier

Related Questions on Interfaces and Abstract Classes

What is an interface in Java?

A. A contract specifying a set of methods that a class must implement

B. A class that cannot be instantiated

C. A class that contains only static methods

D. A subclass of the Object class