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?
- A.
class Demo { abstract void fun(); }
- B.
class abstract Demo { void abstract fun(); }
- C.
abstract class Demo { abstract void fun(); }
- D.
abstract class Demo { void fun() { abstract; } }
- E.
Question not attempted
Attempted by 389 students.
Sign up free to check your answer
Sign up freeLoading lesson…

