Summary
Keywords
Full Transcript
In this video, we’ll dive deep into the role of _init_() and super() within inheritance in Python. Here’s what we’ll cover 👇 ▶️ Every Class Inherits from object We’ll see how every class in Python is, by default, a child of the built-in object class — even if we don’t explicitly mention it. ▶️ How _init_() Behaves in Inheritance We’ll understand how the _init_() method behaves when inheritance is involved, and how child classes can override the parent constructor. ▶️ Calling Parent _init_() Using super() Using the super() function, we’ll learn how to call the parent class constructor from the child class — with a clear, step-by-step example. ▶️ Calling Parent Class Methods Using super() Not just constructors — we’ll also learn how to call parent class methods inside child class methods using super(). By the end of this video, you’ll have a clear understanding of method calling in inheritance, constructor chaining, and the correct usage of super() in Python OOP. Check out our courses: Industry-Ready Java Spring Boot, React & Gen AI -Live: https://go.telusko.com/industry-ready-course Coupon: TELUSKO10 (10% Discount) AI-Powered DevOps with AWS- Live V3: https://go.telusko.com/ai-powered-devops-with-AWS-v3 Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 WhatsApp : https://go.telusko.com/whatsapp TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF
