Menu

#Inheriting

2 posts

Feed·
2 of 2 posts
0Read More

Class inheriting - attributes.

Reddit r/learnpython·u/Professional-Draft10·6 months ago
#F7PftAY3
#attributes#parent#class#child#inheriting

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 want to add one extra attribute…

15s