Which of the following demonstrates the implementation of inheritance in Java?
PYQ DSSSB 2025
Which of the following demonstrates the implementation of inheritance in Java?
- A.
class B inherits A {}
- B.
class A contains B {}
- C.
class A implements B {}
- D.
class A extends B {}
Attempted by 986 students.
Sign up free to check your answer
Sign up freeLoading lesson…

