Single Choice Not Set

QWhich of these is correct way of inheriting class A by class B?

ID: #2244 Inheritance in Java MCQ 20,913 views
Question Info
#2244Q ID
Not SetDifficulty
Inheritance in Java MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A class B + class A {}
  • B class B inherits class A {}
  • C class B extends A {}
  • D class B extends class A {}
Correct Answer

Explanation

class B extends A {}

Share This Question

Challenge a friend or share with your study group.