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 1094 students.
Sign up free to check your answer
Sign up freeExplore the full course: Dsssb Tgt Computer Science Complete Course
Loading lesson…

