YUNOVA · Python programming · Module 12: Object-Oriented Python
Python me method overriding aur super()
Python me method overriding aur super()
Key points
- Child class में वही नाम का function दोबारा लिखना overriding है।
- अब object पर child वाला function चलेगा, parent वाला नहीं।
- super() से parent वाला function भी अंदर से बुलाया जा सकता है।