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
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 {}