python inheritance | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

python inheritance

defanition of a super class

3rd Jun 2019, 11:02 AM
Bubesh
Bubesh - avatar
1 Answer
0
By defining a super class A for class B allows you to define default values for class B. If you search for variable c from class B and it is not found, program will search variable c from class A.
3rd Jun 2019, 12:51 PM
Seb TheS
Seb TheS - avatar