Inheritance
In Python, classes can inherit from other classes, allowing you to reuse code and create a hierarchy of classes. The parent class is known as the base class and the child class is known as the derived class.
Tehtävä
Swipe to start coding
Try and experiment round with the GoldenRetriever
object!
Ratkaisu
Mark tasks as Completed
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 7
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 12.5
Inheritance
In Python, classes can inherit from other classes, allowing you to reuse code and create a hierarchy of classes. The parent class is known as the base class and the child class is known as the derived class.
Tehtävä
Swipe to start coding
Try and experiment round with the GoldenRetriever
object!
Ratkaisu
Mark tasks as Completed
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 7