Buy us a coffee

Python me method overriding aur super()

  • Intermediate
  • Module 5 of 11 in this level
  • Open to learn
Start this skill

Watch

Watch the video to unlock the quizquiz खोलने के लिए video देखें

What you should understandआपको क्या समझना है?

  • Child class में वही नाम का function दोबारा लिखना overriding है।
  • अब object पर child वाला function चलेगा, parent वाला नहीं।
  • super() से parent वाला function भी अंदर से बुलाया जा सकता है।