class A(): bodyclass B(A): body- Here we just pass the reference of class A- class A is base class- class B is the Derived class
body
class B(A):
- Here we just pass the reference of class A
- class A is base class
- class B is the Derived class