![Mcqmate logo](https://mcqmate.com/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/images/logos/logo-white.png)
McqMate
Q. |
Which of these is correct way of inheriting class A by class B? |
A. | class B + class A {} |
B. | class B inherits class A {} |
C. | class B extends A {} |
D. | class B extends class A {} |
Answer» C. class B extends A {} |
View all MCQs in
Java ProgrammingNo comments yet