How can i use a predefined class in its children class??? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How can i use a predefined class in its children class???

Lets suppose a class was pre existed and i want to modify it using attributes of its children class how can i do it??

23rd Aug 2022, 3:37 AM
Krishna Rajput
Krishna Rajput - avatar
1 ответ
+ 3
Than you use the child class? It would contain all attributes and methods from the super class while having it's own subclass attributes/methods. I don't really understand your question
23rd Aug 2022, 4:17 AM
Slick
Slick - avatar