Which Of These Is Correct Way Of Inheriting Class A By Class B #332
Which of these is correct way of inheriting class A by class B?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Inheritance - Java Inheritance - Quiz No.1.
Which of these is correct way of inheriting class A by class B?
class B + class A {}
class B inherits class A {}
class B extends A {}
class B extends class A {}