How can i use a predefined class in its children class??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 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