Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Method Overriding | OOP project
Best Practices: Python OOP
course content

Kurssisisältö

Best Practices: Python OOP

book
Method Overriding

Method overriding is the mechanism by which a subclass can provide a new implementation for a method that is already provided by its superclass.

Tehtävä

Swipe to start coding

  1. Create an object of the Parent class and call the display() method on it;
  2. Create an object of the Child class and call the display() method on it.

Ratkaisu

Mark tasks as Completed
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 8
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt