Menu

Class inheriting - attributes.

Reddit r/learnpython·u/Professional-Draft10·6 months ago
#F7PftAY3
#attributes#parent#class#child#inheriting
Reading 0:00
15s threshold

Class inheriting - attributes. If I define a Parent class with a 100 attributes, and then a Child class inheriting from Parent and I do not add an extra arguments, then I do not need a single line of code to get all the attributes from Parent, but if I…

Anonymous readers can preview up to 1024 characters here. Log in to unlock the full article once ingest succeeds.