Which of the following is the correct way to create an abstract class in Java?

PYQ RPSC Programmer 2024

Which of the following is the correct way to create an abstract class in Java?

  1. A.

    class Demo { abstract void fun(); }

  2. B.

    class abstract Demo { void abstract fun(); }

  3. C.

    abstract class Demo { abstract void fun(); }

  4. D.

    abstract class Demo { void fun() { abstract; } }

  5. E.

    Question not attempted

Attempted by 389 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…