Q. How do you define a Child class inheriting from Parent?

A
class Child.Parent:
B
class Child extends Parent:
C
class Child inherits Parent:
D
class Child(Parent):
Solution:

class Child(Parent): defines inheritance using parentheses.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!