title
OOPS In Python | Object Oriented Programming Python | Python for Beginners | Great Learning

description
🔥1000+ Free Courses With Free Certificates: https://www.mygreatlearning.com/academy?ambassador_code=GLYT_DES_Top_SEP22&utm_source=GLYT&utm_campaign=GLYT_DES_Top_SEP22 🔥Build a successful career in Artificial Intelligence and Machine Learning https://www.mygreatlearning.com/pg-program-artificial-intelligence-course?ambassador_code=GLYT_DES_Middle_SEP22&utm_source=GLYT&utm_campaign=GLYT_DES_Middle_SEP54 This "OOPs in Python" tutorial will help you to understand all the concepts of OPPs comprehensively. Object-Oriented programming is an extremely important part of OOPS. With the help of this, we can represent real-world entities in the programming world. Since object-oriented programming is so important, you will definitely find questions related to it in interviews. Like other general-purpose programming languages, Python is also an object-oriented language since its beginning. It allows any user to develop applications using an Object-Oriented approach. One of the biggest advantages of working in Python is that we can easily create and use classes and objects. The object is related to real-world entities such as books, houses, pencils, etc. It is a widespread technique to solve the problem by creating objects. In this tutorial, we will be covering different principals of Object-Oriented Programming systems such as classes, objects, methods, inheritance, etc. This tutorial will help you to master your skills on this topic (OPPS in Python). At the end of the video, you will find yourself at a position where you can implement all these concepts in the programming world. This tutorial will also help you to understand different types of Inheritance along with the examples and visuals for a Great Learning Experience. 🏁 Topics Covered: 1:20 - Intro to Object-Oriented Programming 1:58 - Classes and Objects in Python 21:19 - Inheritance in Python 37:24 - Types of Inheritance 🔥Check Our Free Courses with free certificate: 📌 Python Programming Course: https://glacad.me/GLA_Python_Hindi 📌Python for Data Science: https://www.mygreatlearning.com/academy/learn-for-free/courses/python-for-data-science3?ambassador_code=GLYT_DES_Middle_SEP22&utm_source=GLYT&utm_campaign=GLYT_DES_Middle_SEP22 📌Python for Non-Programmers: https://www.mygreatlearning.com/academy/learn-for-free/courses/python-for-non-programmers1?ambassador_code=GLYT_DES_Middle_SEP22&utm_source=GLYT&utm_campaign=GLYT_DES_Middle_SEP22 📌Python Libraries for Machine Learning: https://www.mygreatlearning.com/academy/learn-for-free/courses/python-libraries-for-machine-learning?ambassador_code=GLYT_DES_Middle_SEP22&utm_source=GLYT&utm_campaign=GLYT_DES_Middle_SEP22 📌Python IDLE: https://www.mygreatlearning.com/academy/learn-for-free/courses/python-idle?ambassador_code=GLYT_DES_Middle_SEP22&utm_source=GLYT&utm_campaign=GLYT_DES_Middle_SEP22 ⚡ About Great Learning Academy: Visit Great Learning Academy to get access to 1000+ free courses with free certificate on Data Science, Data Analytics, Digital Marketing, Artificial Intelligence, Big Data, Cloud, Management, Cybersecurity, Software Development, and many more. These are supplemented with free projects, assignments, datasets, quizzes. You can earn a certificate of completion at the end of the course for free. ⚡ About Great Learning: With more than 5.4 Million+ learners in 170+ countries, Great Learning, a part of the BYJU'S group, is a leading global edtech company for professional and higher education offering industry-relevant programs in the blended, classroom, and purely online modes across technology, data and business domains. These programs are developed in collaboration with the top institutions like Stanford Executive Education, MIT Professional Education, The University of Texas at Austin, NUS, IIT Madras, IIT Bombay & more. SOCIAL MEDIA LINKS: 🔹 For more interesting tutorials, don't forget to subscribe to our channel: https://glacad.me/YTsubscribe 🔹 For more updates on courses and tips follow us on: ✅ Telegram: https://t.me/GreatLearningAcademy ✅ Facebook: https://www.facebook.com/GreatLearningOfficial/ ✅ LinkedIn: https://www.linkedin.com/school/great-learning/mycompany/verification/ ✅ Follow our Blog: https://glacad.me/GL_Blog

detail
{'title': 'OOPS In Python | Object Oriented Programming Python | Python for Beginners | Great Learning', 'heatmap': [{'end': 975.104, 'start': 937.895, 'weight': 1}, {'end': 1037.219, 'start': 1004.784, 'weight': 0.902}, {'end': 1411.459, 'start': 1379.105, 'weight': 0.904}, {'end': 1853.168, 'start': 1814.755, 'weight': 0.809}, {'end': 2263.623, 'start': 2224.111, 'weight': 0.737}, {'end': 2388.646, 'start': 2347.266, 'weight': 0.712}], 'summary': 'Explores object-oriented programming in python, covering topics such as classes, objects, inheritance, and constructors, with practical examples and real-world applications, while also highlighting a free learning platform offering nearly 100 courses in data science, ai, and cloud computing.', 'chapters': [{'end': 51.186, 'segs': [{'end': 51.186, 'src': 'embed', 'start': 0.369, 'weight': 0, 'content': [{'end': 6.434, 'text': 'Object-oriented programming is a very important concept of Python or any programming language.', 'start': 0.369, 'duration': 6.065}, {'end': 9.417, 'text': 'We are surrounded by objects and classes.', 'start': 6.474, 'duration': 2.943}, {'end': 13.26, 'text': 'The laptop in front of you is an object.', 'start': 9.457, 'duration': 3.803}, {'end': 16.483, 'text': 'The phone in your hand is also an object.', 'start': 13.28, 'duration': 3.203}, {'end': 19.967, 'text': 'The water bottle next to you is also an object.', 'start': 17.123, 'duration': 2.844}, {'end': 27.495, 'text': 'And if we want to represent all these real-world objects in a programming paradigm, we will need object-oriented programming.', 'start': 20.047, 'duration': 7.448}, {'end': 32.901, 'text': 'Keeping that in mind, we have brought this Oops in Python tutorial for you.', 'start': 27.515, 'duration': 5.386}, {'end': 40.484, 'text': 'Before starting the session, I would like to tell you that we have launched a free learning platform called Great Learning Academy,', 'start': 33.982, 'duration': 6.502}, {'end': 47.365, 'text': 'where you will get almost 100 courses, where you will get free courses like Data Science, AI and Cloud Computing.', 'start': 40.484, 'duration': 6.881}, {'end': 51.186, 'text': 'After completing the course, you will also get a certificate.', 'start': 47.465, 'duration': 3.721}], 'summary': 'Python oop is essential for representing real-world objects in programming. great learning academy offers 100+ free courses including data science, ai, and cloud computing with certificates.', 'duration': 50.817, 'max_score': 0.369, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU369.jpg'}], 'start': 0.369, 'title': 'Object-oriented programming in python', 'summary': 'Discusses the significance of object-oriented programming in python, emphasizing the prevalence of objects and classes in the real world and the launch of a free learning platform offering nearly 100 courses including data science, ai, and cloud computing, with certification upon completion.', 'chapters': [{'end': 51.186, 'start': 0.369, 'title': 'Object-oriented programming in python', 'summary': 'Discusses the significance of object-oriented programming in python, emphasizing the prevalence of objects and classes in the real world and the launch of a free learning platform offering nearly 100 courses including data science, ai, and cloud computing, with certification upon completion.', 'duration': 50.817, 'highlights': ['The launch of a free learning platform called Great Learning Academy offering nearly 100 courses including Data Science, AI, and Cloud Computing, with certification upon completion.', 'The significance of object-oriented programming in Python, highlighting the prevalence of objects and classes in the real world.']}], 'duration': 50.817, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU369.jpg', 'highlights': ['The launch of a free learning platform called Great Learning Academy offering nearly 100 courses including Data Science, AI, and Cloud Computing, with certification upon completion.', 'The significance of object-oriented programming in Python, highlighting the prevalence of objects and classes in the real world.']}, {'end': 593.755, 'segs': [{'end': 158.226, 'src': 'embed', 'start': 111.008, 'weight': 0, 'content': [{'end': 113.849, 'text': 'So whatever you see, whatever your eyes see is an object.', 'start': 111.008, 'duration': 2.841}, {'end': 119.45, 'text': 'So, if we have to represent these objects in the world of programming,', 'start': 113.869, 'duration': 5.581}, {'end': 125.491, 'text': "then what is our task with programming? So that we can work with real world entities, isn't it??", 'start': 119.45, 'duration': 6.041}, {'end': 128.612, 'text': 'So that is where object-oriented programming comes in.', 'start': 125.811, 'duration': 2.801}, {'end': 134.75, 'text': 'So now we have two important concepts in object oriented programming, which are called classes and objects.', 'start': 129.467, 'duration': 5.283}, {'end': 137.571, 'text': 'We have understood what objects are.', 'start': 134.79, 'duration': 2.781}, {'end': 142.232, 'text': "So now let's understand what classes are with respect to the programming world.", 'start': 137.591, 'duration': 4.641}, {'end': 147.554, 'text': 'So class is actually a template or a blueprint for real world entities.', 'start': 142.772, 'duration': 4.782}, {'end': 150.663, 'text': 'So what is a real-world entity? These are all objects.', 'start': 148.422, 'duration': 2.241}, {'end': 154.525, 'text': "So let's take a real-world entity like a phone.", 'start': 150.683, 'duration': 3.842}, {'end': 158.226, 'text': "So let's assume that a phone is a real-world entity.", 'start': 154.565, 'duration': 3.661}], 'summary': 'Introduction to object-oriented programming, focusing on classes and objects.', 'duration': 47.218, 'max_score': 111.008, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU111008.jpg'}, {'end': 237.326, 'src': 'embed', 'start': 211.209, 'weight': 2, 'content': [{'end': 215.671, 'text': 'So, just like we have seen inbuilt data types int float, boolean structure, right?', 'start': 211.209, 'duration': 4.462}, {'end': 220.574, 'text': 'So, in the same way, class in Python is actually a user-defined data type.', 'start': 216.192, 'duration': 4.382}, {'end': 221.995, 'text': 'So here is mobile.', 'start': 220.994, 'duration': 1.001}, {'end': 225.416, 'text': 'This mobile is our user-defined data type.', 'start': 222.335, 'duration': 3.081}, {'end': 230.079, 'text': 'And inside that user-defined data type, there are attributes and methods.', 'start': 225.536, 'duration': 4.543}, {'end': 233.282, 'text': 'So attributes are the same thing as properties.', 'start': 230.799, 'duration': 2.483}, {'end': 237.326, 'text': 'So color, cost are attributes or features.', 'start': 233.562, 'duration': 3.764}], 'summary': 'In python, a class is a user-defined data type with attributes and methods.', 'duration': 26.117, 'max_score': 211.209, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU211209.jpg'}, {'end': 377.721, 'src': 'embed', 'start': 352.818, 'weight': 5, 'content': [{'end': 358.045, 'text': 'So our first task will be to implement a class in Python.', 'start': 352.818, 'duration': 5.227}, {'end': 362.992, 'text': 'So we will make a class, first class, right? And the name of that class will be phone.', 'start': 358.366, 'duration': 4.626}, {'end': 369.036, 'text': 'To create a class, we have to use the class keyword in Python.', 'start': 364.654, 'duration': 4.382}, {'end': 371.057, 'text': 'So we will write class.', 'start': 369.096, 'duration': 1.961}, {'end': 376.46, 'text': 'After that, you can see that the name of the class always starts with a capital letter.', 'start': 371.558, 'duration': 4.902}, {'end': 377.721, 'text': 'So keep this in mind.', 'start': 376.8, 'duration': 0.921}], 'summary': "Implement a python class named 'phone' starting with a capital letter.", 'duration': 24.903, 'max_score': 352.818, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU352818.jpg'}, {'end': 593.755, 'src': 'embed', 'start': 565.557, 'weight': 6, 'content': [{'end': 570.738, 'text': 'So, whatever the features of the template were, all those features were available in every individual phone.', 'start': 565.557, 'duration': 5.181}, {'end': 579.56, 'text': 'Because this is my object, I can call this object and I can also play the game because it is defined in the blueprint.', 'start': 570.978, 'duration': 8.582}, {'end': 583.604, 'text': 'So, I have to call someone.', 'start': 581.181, 'duration': 2.423}, {'end': 586.907, 'text': 'So, I will invoke make call.', 'start': 583.744, 'duration': 3.163}, {'end': 591.873, 'text': 'So, as you can see, I am making a call has been printed here.', 'start': 586.948, 'duration': 4.925}, {'end': 593.755, 'text': 'Similarly, I have to play a game.', 'start': 592.354, 'duration': 1.401}], 'summary': 'All phone features available in each phone. object can make calls and play games.', 'duration': 28.198, 'max_score': 565.557, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU565557.jpg'}], 'start': 54.347, 'title': 'Object-oriented programming in python', 'summary': "Introduces object oriented programming in python, explaining the concepts of classes, objects, and their properties and behaviors, illustrating with real-world examples. it also explains the relationship between classes and objects and demonstrates the implementation of a class 'phone' with methods to make a call and play a game.", 'chapters': [{'end': 312.204, 'start': 54.347, 'title': 'Intro to object oriented programming', 'summary': 'Introduces object oriented programming in python, explaining the concepts of classes, objects, and their properties and behaviors, illustrating with real-world examples.', 'duration': 257.857, 'highlights': ['Object Oriented Programming helps in representing real-world entities in programming, enabling the creation of classes and objects with properties and behaviors.', 'Classes are templates or blueprints for real-world entities, defining properties and behaviors, while objects are specific instances of a class, such as specific phone models like Apple, Motorola, and Samsung.', 'A class in Python is a user-defined data type, encapsulating attributes (properties) and methods (behaviors), resembling inbuilt data types like int, float, and boolean structures.', 'Objects in Python are specific instances of a class, representing real-world entities, and can be compared to inbuilt data types by creating specific instances like Apple, Motorola, and Samsung phones.']}, {'end': 593.755, 'start': 312.244, 'title': 'Object-oriented programming in python', 'summary': "Introduces the concept of object-oriented programming in python, explaining the relationship between classes and objects, and demonstrates the implementation of a class 'phone' with methods to make a call and play a game.", 'duration': 281.511, 'highlights': ['The chapter explains the concept of object-oriented programming by discussing the relationship between real-world entities and objects, including the role of object-oriented programming in representing real-world objects in the programming world.', "It demonstrates the implementation of a class 'phone' in Python, emphasizing the importance of using the class keyword and starting the class name with a capital letter, and defining methods such as makeCall and playGame.", "The chapter highlights the instantiation of an object of the 'phone' class, emphasizing the process of creating a specific instance from the class blueprint and invoking methods from the object, such as makeCall and playGame."]}], 'duration': 539.408, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU54347.jpg', 'highlights': ['Object Oriented Programming helps in representing real-world entities in programming, enabling the creation of classes and objects with properties and behaviors.', 'Classes are templates or blueprints for real-world entities, defining properties and behaviors, while objects are specific instances of a class, such as specific phone models like Apple, Motorola, and Samsung.', 'A class in Python is a user-defined data type, encapsulating attributes (properties) and methods (behaviors), resembling inbuilt data types like int, float, and boolean structures.', 'Objects in Python are specific instances of a class, representing real-world entities, and can be compared to inbuilt data types by creating specific instances like Apple, Motorola, and Samsung phones.', 'The chapter explains the concept of object-oriented programming by discussing the relationship between real-world entities and objects, including the role of object-oriented programming in representing real-world objects in the programming world.', "It demonstrates the implementation of a class 'phone' in Python, emphasizing the importance of using the class keyword and starting the class name with a capital letter, and defining methods such as makeCall and playGame.", "The chapter highlights the instantiation of an object of the 'phone' class, emphasizing the process of creating a specific instance from the class blueprint and invoking methods from the object, such as makeCall and playGame."]}, {'end': 937.855, 'segs': [{'end': 657.13, 'src': 'embed', 'start': 623.632, 'weight': 0, 'content': [{'end': 626.854, 'text': 'So, here we are adding four new methods.', 'start': 623.632, 'duration': 3.222}, {'end': 629.936, 'text': 'Set color, set cost, show color, show cost.', 'start': 627.254, 'duration': 2.682}, {'end': 636.239, 'text': 'So, we had seen that the phone has color, right? So, we are defining the phone here.', 'start': 630.576, 'duration': 5.663}, {'end': 641.162, 'text': 'And we are assuming that this phone will have some color and some cost.', 'start': 636.279, 'duration': 4.883}, {'end': 643.323, 'text': 'So, we have to set some color.', 'start': 641.182, 'duration': 2.141}, {'end': 644.704, 'text': 'First of all, it will become self.', 'start': 643.343, 'duration': 1.361}, {'end': 649.967, 'text': 'After that, we will insert another parameter here, whose name we are writing as color.', 'start': 644.724, 'duration': 5.243}, {'end': 657.13, 'text': 'So, here self will be utilized at this time.', 'start': 652.366, 'duration': 4.764}], 'summary': 'Adding 4 methods: set color, set cost, show color, show cost.', 'duration': 33.498, 'max_score': 623.632, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU623632.jpg'}, {'end': 840.263, 'src': 'embed', 'start': 802.582, 'weight': 2, 'content': [{'end': 806.865, 'text': 'so these are all our basic methods and first I will create these two methods here.', 'start': 802.582, 'duration': 4.283}, {'end': 812.889, 'text': 'So these are the methods of set and show.', 'start': 809.306, 'duration': 3.583}, {'end': 815.791, 'text': 'Now, I will define the first methods, make call and play game.', 'start': 812.929, 'duration': 2.862}, {'end': 825.818, 'text': 'So, def of, I will write make call and it will take one parameter self and it will print make a call.', 'start': 816.331, 'duration': 9.487}, {'end': 840.263, 'text': 'Similarly, I will create the final method which will be play game, it will take one parameter self And I will print it here.', 'start': 825.838, 'duration': 14.425}], 'summary': 'Creating methods set, show, make call, and play game with parameters.', 'duration': 37.681, 'max_score': 802.582, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU802582.jpg'}], 'start': 593.795, 'title': 'Adding parameters to class methods', 'summary': 'Demonstrates adding parameters to class methods with examples such as setting color and cost in a phone class, and instantiating and displaying them.', 'chapters': [{'end': 937.855, 'start': 593.795, 'title': 'Adding parameters to class methods', 'summary': 'Demonstrates how to add additional parameters to class methods, with an example of defining a phone class and adding methods to set color, set cost, show color, show cost, make call, and play game, and then instantiating an object and setting color and cost before displaying them.', 'duration': 344.06, 'highlights': ['The chapter illustrates the process of defining a phone class and adding methods to set color, set cost, show color, show cost, make call, and play game, and then instantiating an object and setting color and cost before displaying them.', 'The methods set color, set cost, show color, and show cost are defined to enable the setting and displaying of the color and cost of the phone object, including assigning values like blue for color and 5000 for cost.', 'The chapter also includes the demonstration of methods make call and play game, showcasing the ability to perform actions such as making a call and playing a game using the phone object.']}], 'duration': 344.06, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU593795.jpg', 'highlights': ['The chapter illustrates the process of defining a phone class and adding methods to set color, set cost, show color, and show cost.', 'The methods set color, set cost, show color, and show cost are defined to enable the setting and displaying of the color and cost of the phone object.', 'The chapter also includes the demonstration of methods make call and play game, showcasing the ability to perform actions such as making a call and playing a game using the phone object.']}, {'end': 1258.885, 'segs': [{'end': 967.755, 'src': 'embed', 'start': 937.895, 'weight': 2, 'content': [{'end': 942.477, 'text': 'So we have added the color and cost object features here.', 'start': 937.895, 'duration': 4.582}, {'end': 949.522, 'text': "So now let's understand what a constructor is and how to work with a constructor.", 'start': 944.48, 'duration': 5.042}, {'end': 955.785, 'text': 'So a constructor is a special type of method, and through this constructor, whenever you create an object,', 'start': 950.103, 'duration': 5.682}, {'end': 958.927, 'text': 'you can assign all the values at the time of creation.', 'start': 955.785, 'duration': 3.142}, {'end': 967.755, 'text': 'And in Python, you define the constructor with the init method.', 'start': 963.189, 'duration': 4.566}], 'summary': 'The transcript explains adding color and cost object features, and the use of a constructor to assign values during object creation in python.', 'duration': 29.86, 'max_score': 937.895, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU937895.jpg'}, {'end': 975.104, 'src': 'heatmap', 'start': 937.895, 'weight': 1, 'content': [{'end': 942.477, 'text': 'So we have added the color and cost object features here.', 'start': 937.895, 'duration': 4.582}, {'end': 949.522, 'text': "So now let's understand what a constructor is and how to work with a constructor.", 'start': 944.48, 'duration': 5.042}, {'end': 955.785, 'text': 'So a constructor is a special type of method, and through this constructor, whenever you create an object,', 'start': 950.103, 'duration': 5.682}, {'end': 958.927, 'text': 'you can assign all the values at the time of creation.', 'start': 955.785, 'duration': 3.142}, {'end': 967.755, 'text': 'And in Python, you define the constructor with the init method.', 'start': 963.189, 'duration': 4.566}, {'end': 971.74, 'text': 'So def, double underscore, init, again double underscore.', 'start': 967.995, 'duration': 3.745}, {'end': 975.104, 'text': 'So the class name is employee, you have created the method.', 'start': 971.86, 'duration': 3.244}], 'summary': 'Introduction to using a constructor in python for object creation.', 'duration': 37.209, 'max_score': 937.895, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU937895.jpg'}, {'end': 1037.219, 'src': 'heatmap', 'start': 990.116, 'weight': 0, 'content': [{'end': 996.059, 'text': 'If we create just one constructor with the help of this init method,', 'start': 990.116, 'duration': 5.943}, {'end': 1002.283, 'text': 'then we can assign all these elements or attributes at the time of object creation.', 'start': 996.059, 'duration': 6.224}, {'end': 1010.266, 'text': 'For example, the employee will have a name, age, salary, and gender.', 'start': 1004.784, 'duration': 5.482}, {'end': 1014.008, 'text': 'I am assigning all these to this constructor.', 'start': 1010.366, 'duration': 3.642}, {'end': 1018.01, 'text': 'After that, I am just printing these values here.', 'start': 1014.268, 'duration': 3.742}, {'end': 1023.172, 'text': 'Name of employee is, age of employee is, salary of employee is, and gender of employee is.', 'start': 1018.13, 'duration': 5.042}, {'end': 1027.628, 'text': 'After this, I am instantiating it.', 'start': 1024.526, 'duration': 3.102}, {'end': 1030.732, 'text': 'And as you can see, I have created an object, E1.', 'start': 1027.648, 'duration': 3.084}, {'end': 1037.219, 'text': 'And while creating the object, I am passing all these values.', 'start': 1030.752, 'duration': 6.467}], 'summary': 'Creating a constructor with init method to assign employee attributes at object creation.', 'duration': 27.894, 'max_score': 990.116, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU990116.jpg'}, {'end': 1074.912, 'src': 'embed', 'start': 1047.029, 'weight': 3, 'content': [{'end': 1049.912, 'text': 'I have invoked this method, E1.EmployeeDetails.', 'start': 1047.029, 'duration': 2.883}, {'end': 1052.335, 'text': 'And all these have been printed here.', 'start': 1050.493, 'duration': 1.842}, {'end': 1055.018, 'text': "So, let's implement this example.", 'start': 1052.736, 'duration': 2.282}, {'end': 1057.801, 'text': 'So, first of all, I will write class.', 'start': 1055.659, 'duration': 2.142}, {'end': 1060.765, 'text': 'And the class name will be employee.', 'start': 1058.622, 'duration': 2.143}, {'end': 1063.148, 'text': 'And I have to create a constructor.', 'start': 1060.785, 'duration': 2.363}, {'end': 1063.528, 'text': 'So, def.', 'start': 1063.188, 'duration': 0.34}, {'end': 1067.51, 'text': 'Two underscores are written in it.', 'start': 1065.41, 'duration': 2.1}, {'end': 1070.551, 'text': 'Again two underscores are written here.', 'start': 1067.87, 'duration': 2.681}, {'end': 1072.311, 'text': 'Then round braces are written here.', 'start': 1070.571, 'duration': 1.74}, {'end': 1074.912, 'text': 'So first of all you have to write self.', 'start': 1072.331, 'duration': 2.581}], 'summary': 'Implemented e1.employeedetails method, printed details, and created employee class with constructor', 'duration': 27.883, 'max_score': 1047.029, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1047029.jpg'}, {'end': 1266.828, 'src': 'embed', 'start': 1232.205, 'weight': 4, 'content': [{'end': 1234.668, 'text': 'After that, the age of employee is 32.', 'start': 1232.205, 'duration': 2.463}, {'end': 1241.295, 'text': "And let's assume the salary of Ram is around 50,000 rupees per month.", 'start': 1234.668, 'duration': 6.627}, {'end': 1244.718, 'text': 'Then obviously Ram is gender male.', 'start': 1241.895, 'duration': 2.823}, {'end': 1247.841, 'text': 'So, we have instantiated it.', 'start': 1246.4, 'duration': 1.441}, {'end': 1249.701, 'text': 'After this, I have to invoke the method.', 'start': 1247.901, 'duration': 1.8}, {'end': 1254.123, 'text': 'So, I have invoked the method e1.showEmployeeDetails.', 'start': 1249.721, 'duration': 4.402}, {'end': 1258.885, 'text': 'And we are printing all these employee details here.', 'start': 1254.823, 'duration': 4.062}, {'end': 1266.828, 'text': 'So, name of employee is Ram, age of employee is 32, salary of employee is 50,000 and gender of employee is male.', 'start': 1259.645, 'duration': 7.183}], 'summary': 'Employee ram, 32 years old, earns 50,000 rupees/month, male gender.', 'duration': 34.623, 'max_score': 1232.205, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1232205.jpg'}], 'start': 937.895, 'title': 'Python constructors and class example', 'summary': 'Illustrates the concept of a constructor in python, showcasing its role in attribute assignment during object creation, and provides a practical example with an instantiated object displaying employee details such as name, age, salary, and gender.', 'chapters': [{'end': 1046.529, 'start': 937.895, 'title': 'Constructor in python', 'summary': "Explains the concept of a constructor in python, demonstrating how it allows for the assignment of object values at the time of creation and its usage in the context of a class named 'employee'. it also highlights the benefits of using a constructor over separate methods for attribute assignment.", 'duration': 108.634, 'highlights': ["A constructor in Python allows for the assignment of all object values at the time of creation, demonstrated through the 'employee' class and the 'init' method, streamlining attribute assignment compared to separate methods.", "The 'init' method in Python defines the constructor, as shown in the 'employee' class, where it takes parameters such as name, age, salary, and gender, streamlining the object creation process.", "Using a constructor in Python eliminates the need for separate methods to assign attributes such as color or cost, as demonstrated in the context of the 'employee' class, simplifying the object creation process."]}, {'end': 1258.885, 'start': 1047.029, 'title': 'Python class and object example', 'summary': "Demonstrates the implementation of a python class and object example, initializing and printing employee details, with an instantiated object 'e1' showing employee details like name, age, salary, and gender.", 'duration': 211.856, 'highlights': ['Demonstrating the implementation of a Python class and object example The chapter illustrates the construction of a Python class and object for an employee, showcasing the process of initializing attributes like name, age, salary, and gender, and printing the employee details.', "Instantiating an object 'E1' with employee details The object 'E1' is instantiated with the employee's name as Ram, age as 32, salary as 50,000 rupees per month, and gender as male.", "Invoking the method to print employee details The method 'showEmployeeDetails' is invoked for the object 'E1' to print the employee details, including name, age, salary, and gender."]}], 'duration': 320.99, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU937895.jpg', 'highlights': ["A constructor in Python allows for the assignment of all object values at the time of creation, demonstrated through the 'employee' class and the 'init' method, streamlining attribute assignment compared to separate methods.", "The 'init' method in Python defines the constructor, as shown in the 'employee' class, where it takes parameters such as name, age, salary, and gender, streamlining the object creation process.", "Using a constructor in Python eliminates the need for separate methods to assign attributes such as color or cost, as demonstrated in the context of the 'employee' class, simplifying the object creation process.", 'Demonstrating the implementation of a Python class and object example The chapter illustrates the construction of a Python class and object for an employee, showcasing the process of initializing attributes like name, age, salary, and gender, and printing the employee details.', "Instantiating an object 'E1' with employee details The object 'E1' is instantiated with the employee's name as Ram, age as 32, salary as 50,000 rupees per month, and gender as male.", "Invoking the method to print employee details The method 'showEmployeeDetails' is invoked for the object 'E1' to print the employee details, including name, age, salary, and gender."]}, {'end': 1643.797, 'segs': [{'end': 1314.88, 'src': 'embed', 'start': 1286.957, 'weight': 0, 'content': [{'end': 1292.96, 'text': 'So basic is that with inheritance one class can derive the properties of another class.', 'start': 1286.957, 'duration': 6.003}, {'end': 1297.964, 'text': 'Suppose you have some properties, some genetic features.', 'start': 1293.72, 'duration': 4.244}, {'end': 1302.088, 'text': 'You must have inherited those genetic features from your parents.', 'start': 1298.024, 'duration': 4.064}, {'end': 1307.453, 'text': 'And your parents must have inherited it from your grandparents.', 'start': 1302.168, 'duration': 5.285}, {'end': 1311.497, 'text': 'You look like your father or your mother.', 'start': 1307.613, 'duration': 3.884}, {'end': 1314.88, 'text': 'And your parents look like your grandparents.', 'start': 1311.537, 'duration': 3.343}], 'summary': 'Inheritance allows classes to derive properties, similar to genetic features passed down through generations.', 'duration': 27.923, 'max_score': 1286.957, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1286957.jpg'}, {'end': 1369.116, 'src': 'embed', 'start': 1336.855, 'weight': 1, 'content': [{'end': 1344.28, 'text': 'So, whatever features are there, a class that is above, inherits the lower class from the upper class.', 'start': 1336.855, 'duration': 7.425}, {'end': 1348.062, 'text': 'You can put the same concept in Python as well.', 'start': 1346.021, 'duration': 2.041}, {'end': 1352.025, 'text': 'In this, you have a superclass and a subclass.', 'start': 1348.182, 'duration': 3.843}, {'end': 1356.727, 'text': 'All the properties in the superclass inherit the properties of the superclass.', 'start': 1352.145, 'duration': 4.582}, {'end': 1359.109, 'text': "Let's see an example here.", 'start': 1356.807, 'duration': 2.302}, {'end': 1366.074, 'text': 'So, we have a class here named Vehicle.', 'start': 1362.791, 'duration': 3.283}, {'end': 1369.116, 'text': 'It has a constructor and a normal method.', 'start': 1366.634, 'duration': 2.482}], 'summary': 'Inheritance in python: superclass properties inherit to subclass.', 'duration': 32.261, 'max_score': 1336.855, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1336855.jpg'}, {'end': 1411.459, 'src': 'heatmap', 'start': 1379.105, 'weight': 0.904, 'content': [{'end': 1387.354, 'text': 'After that, we are We will instantiate this vehicle and the mileage is 500 and the cost is also 500.', 'start': 1379.105, 'duration': 8.249}, {'end': 1390.618, 'text': 'It seems to be a very cheap vehicle and after that we will do show details.', 'start': 1387.354, 'duration': 3.264}, {'end': 1395.024, 'text': 'So this is our base class or we will call it super class.', 'start': 1390.698, 'duration': 4.326}, {'end': 1399.73, 'text': 'So after creating the base class, we will create the child class.', 'start': 1395.064, 'duration': 4.666}, {'end': 1406.556, 'text': 'So here child class is a car which inherits the features of the vehicle.', 'start': 1401.072, 'duration': 5.484}, {'end': 1411.459, 'text': 'So here I am passing vehicle in round brackets.', 'start': 1406.916, 'duration': 4.543}], 'summary': 'Creating a vehicle with 500 mileage and cost, then creating a car class inheriting from it.', 'duration': 32.354, 'max_score': 1379.105, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1379105.jpg'}, {'end': 1451.802, 'src': 'embed', 'start': 1426.483, 'weight': 2, 'content': [{'end': 1435.067, 'text': 'As you can see, when you are instantiating the vehicle, then you are giving the mileage and cost values at the time of instantiation.', 'start': 1426.483, 'duration': 8.584}, {'end': 1444.095, 'text': 'In the same way, because child class is a part of or child class is inheriting the features of the vehicle class.', 'start': 1436.508, 'duration': 7.587}, {'end': 1451.802, 'text': 'So when you create an object, at the time of object creation, mileage and cost will be present in this class.', 'start': 1444.115, 'duration': 7.687}], 'summary': 'Instantiating a vehicle with initial mileage and cost values, child class inherits these features.', 'duration': 25.319, 'max_score': 1426.483, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1426483.jpg'}], 'start': 1259.645, 'title': 'Basics of object-oriented programming, inheritance in python, and creating vehicle class constructor and instantiation', 'summary': 'Discusses basic object-oriented programming concepts, such as inheritance, using relatable examples. it also explains inheritance in python with a vehicle and car class example, and covers creating a constructor for the vehicle class to avoid instantiation errors.', 'chapters': [{'end': 1336.515, 'start': 1259.645, 'title': 'Basics of object-oriented programming', 'summary': 'Discusses the basic concepts in object-oriented programming, including the passing of values during object creation and the important concept of inheritance, which allows one class to derive properties from another class, using relatable examples.', 'duration': 76.87, 'highlights': ['Inheritance allows one class to derive properties from another class, similar to inheriting genetic or financial features from parents or grandparents.', 'Object-oriented programming involves passing all values during object creation using a constructor.']}, {'end': 1507.231, 'start': 1336.855, 'title': 'Inheritance in python', 'summary': 'Explains the concept of inheritance in python, where a subclass inherits the properties of a superclass, demonstrated through a vehicle and car class example with mileage and cost data.', 'duration': 170.376, 'highlights': ['The concept of inheritance in Python involves a subclass inheriting the properties of a superclass, demonstrated through a Vehicle and Car class example.', 'The Vehicle class has a constructor and a normal method for assigning mileage and cost, with an instantiation resulting in a mileage of 500 and a cost of 500.', 'The Car class, which inherits from the Vehicle class, also has access to the mileage and cost properties, showcasing the inheritance concept in action.', 'The ability to invoke the showDetails method from the parent class within the Car class illustrates the inheritance of methods as well as properties.']}, {'end': 1643.797, 'start': 1507.451, 'title': 'Creating vehicle class constructor and instantiation', 'summary': 'Covers the creation of a constructor for the vehicle class, initializing mileage and cost attributes, and demonstrating the requirement to provide values for mileage and cost during object instantiation to avoid errors.', 'duration': 136.346, 'highlights': ['The chapter covers the creation of a constructor for the vehicle class, initializing mileage and cost attributes, and demonstrating the requirement to provide values for mileage and cost during object instantiation to avoid errors.', 'During object instantiation, the values for mileage and cost must be provided, as the absence of these values results in an error.', 'The constructor is responsible for initializing the mileage and cost attributes of the vehicle class.']}], 'duration': 384.152, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1259645.jpg', 'highlights': ['Inheritance allows one class to derive properties from another class, similar to inheriting genetic or financial features from parents or grandparents.', 'The concept of inheritance in Python involves a subclass inheriting the properties of a superclass, demonstrated through a Vehicle and Car class example.', 'The chapter covers the creation of a constructor for the vehicle class, initializing mileage and cost attributes, and demonstrating the requirement to provide values for mileage and cost during object instantiation to avoid errors.']}, {'end': 2233.61, 'segs': [{'end': 1712.202, 'src': 'embed', 'start': 1675.833, 'weight': 0, 'content': [{'end': 1678.753, 'text': 'So this is our base class or superclass.', 'start': 1675.833, 'duration': 2.92}, {'end': 1684.475, 'text': 'We will have to create a child class which inherits the properties of superclass.', 'start': 1678.794, 'duration': 5.681}, {'end': 1698.196, 'text': 'class of car round braces and in round braces I will write vehicle or class name which is vehicle.', 'start': 1687.591, 'duration': 10.605}, {'end': 1707.64, 'text': 'This means this child class car is inheriting the properties from the vehicle class which is super class.', 'start': 1698.936, 'duration': 8.704}, {'end': 1712.202, 'text': 'This child class car is inheriting the properties of super class.', 'start': 1707.66, 'duration': 4.542}], 'summary': "Creating a child class 'car' inheriting properties from superclass 'vehicle'.", 'duration': 36.369, 'max_score': 1675.833, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1675833.jpg'}, {'end': 1853.168, 'src': 'heatmap', 'start': 1789.126, 'weight': 2, 'content': [{'end': 1792.148, 'text': 'So, here its mileage is 250 and cost of vehicle is 800.', 'start': 1789.126, 'duration': 3.022}, {'end': 1795.089, 'text': 'And similarly, I can invoke the method under its car class.', 'start': 1792.148, 'duration': 2.941}, {'end': 1814.735, 'text': "So, C1 dot show car details, right? And I have invoked the car's individual method as well as the parent class method.", 'start': 1795.109, 'duration': 19.626}, {'end': 1819.96, 'text': 'So in this way, we can apply basic inheritance in Python.', 'start': 1814.755, 'duration': 5.205}, {'end': 1825.222, 'text': "So now let's see how to overwrite the init method.", 'start': 1821.821, 'duration': 3.401}, {'end': 1829.643, 'text': 'This is the same example as vehicle class and car class.', 'start': 1825.242, 'duration': 4.401}, {'end': 1835.364, 'text': 'So now we are creating another constructor inside the child class.', 'start': 1829.663, 'duration': 5.701}, {'end': 1842.665, 'text': 'So as we saw in the previous example, this is our child class, but there was no constructor inside it.', 'start': 1835.784, 'duration': 6.881}, {'end': 1846.746, 'text': 'So we have to overwrite the constructor or overwrite the init method.', 'start': 1842.685, 'duration': 4.061}, {'end': 1848.667, 'text': "So let's see how we can do it.", 'start': 1846.766, 'duration': 1.901}, {'end': 1853.168, 'text': 'Here we have our child class which is inheriting from the vehicle class.', 'start': 1849.867, 'duration': 3.301}], 'summary': 'Python inheritance and method overwriting demonstrated with vehicle and car classes.', 'duration': 36.096, 'max_score': 1789.126, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1789126.jpg'}, {'end': 1878.842, 'src': 'embed', 'start': 1849.867, 'weight': 1, 'content': [{'end': 1853.168, 'text': 'Here we have our child class which is inheriting from the vehicle class.', 'start': 1849.867, 'duration': 3.301}, {'end': 1857.269, 'text': 'So we will write definition of parent from which we can create a constructor.', 'start': 1853.528, 'duration': 3.741}, {'end': 1860.05, 'text': 'Again here self, mileage, cost.', 'start': 1857.289, 'duration': 2.761}, {'end': 1864.452, 'text': 'So mileage and cost already are a part of your parent class.', 'start': 1860.451, 'duration': 4.001}, {'end': 1870.936, 'text': 'So, apart from these, I am adding two new attributes which are TIRES and HP.', 'start': 1864.932, 'duration': 6.004}, {'end': 1875.239, 'text': 'So, here I have to pass mileage and cost in my parent class.', 'start': 1871.016, 'duration': 4.223}, {'end': 1878.842, 'text': 'So, what do we call parent class? We also call it super class.', 'start': 1875.259, 'duration': 3.583}], 'summary': 'Child class inherits from parent class with added attributes tires and hp.', 'duration': 28.975, 'max_score': 1849.867, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1849867.jpg'}, {'end': 2210.934, 'src': 'embed', 'start': 2186.142, 'weight': 3, 'content': [{'end': 2193.128, 'text': 'So we have successfully created a child class where we are overwriting the init method of the parent class.', 'start': 2186.142, 'duration': 6.986}, {'end': 2200.371, 'text': 'So, I am invoking this method of parent class from the object of parent class.', 'start': 2193.809, 'duration': 6.562}, {'end': 2205.852, 'text': 'Here I will print c1.showCarDetails and it has been printed.', 'start': 2200.391, 'duration': 5.461}, {'end': 2208.573, 'text': 'Number of tires in car are 8.', 'start': 2206.012, 'duration': 2.561}, {'end': 2210.934, 'text': 'So, actually we have printed the method of child class.', 'start': 2208.573, 'duration': 2.361}], 'summary': 'Created child class, overwrote init method, printed method of child class, 8 tires in car', 'duration': 24.792, 'max_score': 2186.142, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2186142.jpg'}], 'start': 1643.837, 'title': 'Python inheritance', 'summary': 'Explains basic inheritance in python, demonstrating how a child class inherits properties and methods from a superclass, overwriting the init method, with examples and explanations. it also highlights the process of creating a child class, overriding the init method of the parent class, and invoking and printing the details of the child class object, emphasizing the inheritance of methods and attributes.', 'chapters': [{'end': 1900.086, 'start': 1643.837, 'title': 'Inheritance in python', 'summary': 'Explains basic inheritance in python, demonstrating how a child class inherits properties and methods from a superclass, and how to overwrite the init method, with examples and explanations.', 'duration': 256.249, 'highlights': ["The chapter explains basic inheritance in Python, demonstrating how a child class inherits properties and methods from a superclass. It covers the concept of inheritance, demonstrating how a child class 'car' inherits properties like mileage and cost from the superclass 'vehicle'.", "The chapter also discusses how to overwrite the init method and create a constructor inside the child class, adding new attributes like TIRES and HP. It explains the process of overwriting the init method in the child class 'car' to add new attributes like TIRES and HP, while still using the properties of the parent class."]}, {'end': 2233.61, 'start': 1902.029, 'title': 'Python class inheritance', 'summary': 'Explains the concept of class inheritance in python, highlighting the process of creating a child class, overriding the init method of the parent class, and invoking and printing the details of the child class object, emphasizing the inheritance of methods and attributes.', 'duration': 331.581, 'highlights': ['The chapter explains the concept of class inheritance in Python, highlighting the process of creating a child class, overriding the init method of the parent class, and invoking and printing the details of the child class object, emphasizing the inheritance of methods and attributes.', "The child class 'Car' overrides the init method of the parent class 'Vehicle' to include additional attributes like 'tires' and 'HP', demonstrating the concept of method overriding and extending the functionality of the parent class.", "The example demonstrates the instantiation of a 'Car' object, passing values for mileage, cost, number of tires, and HP, showcasing the process of creating objects and initializing attributes in a child class in Python.", 'The transcript details the process of fixing errors encountered during instantiation, highlighting the importance of proper inheritance and class structure in Python programming.']}], 'duration': 589.773, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU1643837.jpg', 'highlights': ['The chapter explains basic inheritance in Python, demonstrating how a child class inherits properties and methods from a superclass.', 'The chapter also discusses how to overwrite the init method and create a constructor inside the child class, adding new attributes like TIRES and HP.', 'The chapter explains the concept of class inheritance in Python, highlighting the process of creating a child class, overriding the init method of the parent class, and invoking and printing the details of the child class object, emphasizing the inheritance of methods and attributes.', "The child class 'Car' overrides the init method of the parent class 'Vehicle' to include additional attributes like 'tires' and 'HP', demonstrating the concept of method overriding and extending the functionality of the parent class.", "The example demonstrates the instantiation of a 'Car' object, passing values for mileage, cost, number of tires, and HP, showcasing the process of creating objects and initializing attributes in a child class in Python."]}, {'end': 2664.187, 'segs': [{'end': 2278.206, 'src': 'embed', 'start': 2233.63, 'weight': 0, 'content': [{'end': 2237.091, 'text': "So now let's see what are the different types of inheritance.", 'start': 2233.63, 'duration': 3.461}, {'end': 2243.715, 'text': 'So in Python we have single inheritance, multiple inheritance, multi-level inheritance and hybrid inheritance.', 'start': 2237.132, 'duration': 6.583}, {'end': 2249.778, 'text': 'So till now we had seen single inheritance where one child class inherits from one super class.', 'start': 2244.115, 'duration': 5.663}, {'end': 2252.199, 'text': "So now let's understand the other three.", 'start': 2249.798, 'duration': 2.401}, {'end': 2255.601, 'text': 'So first of all we will start with multiple inheritance.', 'start': 2252.38, 'duration': 3.221}, {'end': 2263.623, 'text': 'So, as it is stated over here, in multiple inheritance, the child inherits from more than one parent class.', 'start': 2257.162, 'duration': 6.461}, {'end': 2265.924, 'text': "So, that's why it is called multiple inheritance.", 'start': 2263.643, 'duration': 2.281}, {'end': 2270.924, 'text': 'So, there is one child class which inherits from two parent classes.', 'start': 2265.964, 'duration': 4.96}, {'end': 2274.105, 'text': 'That means there is more than one parent class.', 'start': 2271.045, 'duration': 3.06}, {'end': 2278.206, 'text': 'So, it is inheriting these features from parent 1 and from parent 2.', 'start': 2274.445, 'duration': 3.761}], 'summary': 'Python has single, multiple, multi-level, and hybrid inheritance. multiple inheritance involves a child class inheriting from more than one parent class.', 'duration': 44.576, 'max_score': 2233.63, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2233630.jpg'}, {'end': 2388.646, 'src': 'heatmap', 'start': 2330.757, 'weight': 2, 'content': [{'end': 2336.92, 'text': 'And this derived class is inheriting features from both parent1 and parent2.', 'start': 2330.757, 'duration': 6.163}, {'end': 2342.463, 'text': 'Means this child class will have properties of parent1 and parent2.', 'start': 2337.401, 'duration': 5.062}, {'end': 2345.525, 'text': "That's why I have written parent1 and parent2 in brackets.", 'start': 2342.523, 'duration': 3.002}, {'end': 2347.166, 'text': 'And it will have two methods.', 'start': 2345.605, 'duration': 1.561}, {'end': 2356.413, 'text': 'So in this derived, This will be AssignString1 and ShowString1.', 'start': 2347.266, 'duration': 9.147}, {'end': 2358.515, 'text': 'AssignString2 and ShowString2.', 'start': 2356.833, 'duration': 1.682}, {'end': 2360.938, 'text': 'And these two will also be here.', 'start': 2358.876, 'duration': 2.062}, {'end': 2363.862, 'text': 'Right So I have created a child class here.', 'start': 2361.379, 'duration': 2.483}, {'end': 2369.87, 'text': 'After creating a child class, I will instantiate an object of a child class.', 'start': 2363.902, 'duration': 5.968}, {'end': 2371.552, 'text': 'D1 equals derived.', 'start': 2370.01, 'duration': 1.542}, {'end': 2379.039, 'text': 'And here I am instantiating 1 or 2 from assign string 1 and assign string 2, which are the methods of its parent class.', 'start': 2372.253, 'duration': 6.786}, {'end': 2382.401, 'text': 'And I am instantiating 3 from assign string 3.', 'start': 2379.239, 'duration': 3.162}, {'end': 2388.646, 'text': 'So I have instantiated 3 strings, after that I am just printing these values.', 'start': 2382.401, 'duration': 6.245}], 'summary': 'The derived class inherits from parent1 and parent2, with 3 instantiated strings.', 'duration': 57.889, 'max_score': 2330.757, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2330757.jpg'}], 'start': 2233.63, 'title': 'Python multiple inheritance', 'summary': 'Explains the implementation of multiple inheritance in python, including creating parent classes, a child class inheriting from both parents, and instantiating and invoking methods to demonstrate the concept.', 'chapters': [{'end': 2278.206, 'start': 2233.63, 'title': 'Python inheritance types', 'summary': 'Explains the different types of inheritance in python, including single inheritance, multiple inheritance, multi-level inheritance, and hybrid inheritance, with a focus on multiple inheritance where a child class inherits from more than one parent class.', 'duration': 44.576, 'highlights': ['In Python, inheritance types include single, multiple, multi-level, and hybrid inheritance.', 'Multiple inheritance in Python involves a child class inheriting from more than one parent class.', 'In multiple inheritance, a child class inherits features from two or more parent classes.']}, {'end': 2664.187, 'start': 2278.206, 'title': 'Python multiple inheritance', 'summary': 'Discusses the implementation of multiple inheritance in python, creating parent classes, a child class inheriting from both parents, and instantiating and invoking methods to demonstrate the concept.', 'duration': 385.981, 'highlights': ['The derived class inherits features from parent1 and parent2, possessing properties and methods from both parents.', 'The child class is instantiated and methods from its parent classes are invoked to assign and display strings, demonstrating the implementation of multiple inheritance in Python.', 'The process involves creating parent classes, defining methods to assign and show strings, and instantiating a child class to showcase the concept of multiple inheritance.']}], 'duration': 430.557, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2233630.jpg', 'highlights': ['In Python, inheritance types include single, multiple, multi-level, and hybrid inheritance.', 'Multiple inheritance in Python involves a child class inheriting from more than one parent class.', 'The derived class inherits features from parent1 and parent2, possessing properties and methods from both parents.', 'The process involves creating parent classes, defining methods to assign and show strings, and instantiating a child class to showcase the concept of multiple inheritance.']}, {'end': 3124.089, 'segs': [{'end': 2734.818, 'src': 'embed', 'start': 2708.565, 'weight': 0, 'content': [{'end': 2714.587, 'text': 'After that, we created a child class, which was inheriting properties from parent1 and parent2.', 'start': 2708.565, 'duration': 6.022}, {'end': 2717.788, 'text': 'After that, we have invoked all the properties.', 'start': 2714.707, 'duration': 3.081}, {'end': 2720.069, 'text': 'After that, we have shown all the properties.', 'start': 2717.888, 'duration': 2.181}, {'end': 2723.17, 'text': 'So, we have covered multiple inheritance.', 'start': 2720.089, 'duration': 3.081}, {'end': 2725.391, 'text': "Now, let's see what is multi-level inheritance.", 'start': 2723.21, 'duration': 2.181}, {'end': 2731.636, 'text': 'So, as you can see, in multi-level inheritance, we have a parent-child-grandchild relationship.', 'start': 2726.493, 'duration': 5.143}, {'end': 2734.818, 'text': 'So, suppose this is our first class, the base class.', 'start': 2731.676, 'duration': 3.142}], 'summary': 'Covered multiple inheritance and introduced multi-level inheritance with a parent-child-grandchild relationship.', 'duration': 26.253, 'max_score': 2708.565, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2708565.jpg'}, {'end': 2779.82, 'src': 'embed', 'start': 2749.926, 'weight': 3, 'content': [{'end': 2753.288, 'text': 'So, in this way, we will call the relationship multi-level inheritance.', 'start': 2749.926, 'duration': 3.362}, {'end': 2757.227, 'text': "So now let's see how we can implement multi-level inheritance in Python.", 'start': 2754.926, 'duration': 2.301}, {'end': 2761.15, 'text': "So first of all, let's make a parent class.", 'start': 2757.508, 'duration': 3.642}, {'end': 2764.172, 'text': 'class parent and we will define two methods in it.', 'start': 2761.31, 'duration': 2.862}, {'end': 2766.833, 'text': 'The first method is assignName.', 'start': 2764.192, 'duration': 2.641}, {'end': 2770.015, 'text': 'So here we will assign the name of the parent.', 'start': 2767.233, 'duration': 2.782}, {'end': 2771.996, 'text': 'So self.name is equal to name.', 'start': 2770.395, 'duration': 1.601}, {'end': 2773.637, 'text': 'Here we have assigned the name of the parent.', 'start': 2772.136, 'duration': 1.501}, {'end': 2775.839, 'text': 'After that we will return the name of the parent.', 'start': 2773.657, 'duration': 2.182}, {'end': 2779.82, 'text': 'Similarly, we will create a child class here.', 'start': 2776.719, 'duration': 3.101}], 'summary': 'Demonstrating multi-level inheritance in python with parent and child classes', 'duration': 29.894, 'max_score': 2749.926, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2749926.jpg'}, {'end': 2958.076, 'src': 'embed', 'start': 2926.343, 'weight': 4, 'content': [{'end': 2933.768, 'text': 'So I will write getGender and the first parameter will be self and the second parameter will be gender.', 'start': 2926.343, 'duration': 7.425}, {'end': 2939.893, 'text': 'And I will write self.gender as equal to gender.', 'start': 2933.868, 'duration': 6.025}, {'end': 2948.078, 'text': 'Then I will make another method here, def of, here I will have to show gender, show gender, here it will be self.', 'start': 2940.693, 'duration': 7.385}, {'end': 2952.281, 'text': 'Then I will write return of self.gender.', 'start': 2948.299, 'duration': 3.982}, {'end': 2958.076, 'text': 'So my grandchild class is also ready.', 'start': 2956.175, 'duration': 1.901}], 'summary': 'Created a method getgender with self and gender parameters, and a showgender method to display the gender.', 'duration': 31.733, 'max_score': 2926.343, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2926343.jpg'}, {'end': 3101.884, 'src': 'embed', 'start': 3078.143, 'weight': 2, 'content': [{'end': 3086.03, 'text': 'Then we have made an object of grandchild class and because grandchild class is inheriting from child class and parent class,', 'start': 3078.143, 'duration': 7.887}, {'end': 3089.073, 'text': 'it will also have getAge and getName methods.', 'start': 3086.03, 'duration': 3.043}, {'end': 3099.542, 'text': 'So I am assigning name, age and gender to this object and after assigning these three, I am printing out name,', 'start': 3089.113, 'duration': 10.429}, {'end': 3101.884, 'text': 'age and gender again with the help of show methods.', 'start': 3099.542, 'duration': 2.342}], 'summary': 'Grandchild object inherits methods from parent and child classes and displays name, age, and gender.', 'duration': 23.741, 'max_score': 3078.143, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU3078143.jpg'}], 'start': 2669.62, 'title': 'Multi-level inheritance in python', 'summary': 'Covers the concept of multi-level inheritance in python, demonstrating a parent-child-grandchild relationship and the implementation of inheritance in python classes, using methods to assign and print name, age, and gender for the grandchild object.', 'chapters': [{'end': 2834.787, 'start': 2669.62, 'title': 'Multiple inheritance and multi-level inheritance', 'summary': 'Covers the concept of multiple inheritance where a child class inherits properties from two parent classes, followed by the explanation of multi-level inheritance with a parent-child-grandchild relationship and the implementation of inheritance in python classes.', 'duration': 165.167, 'highlights': ['The chapter covers the concept of multiple inheritance where a child class inherits properties from two parent classes. The concept of multiple inheritance is explained with the inheritance of properties from parent1 and parent2, and the invocation of all properties.', 'The explanation of multi-level inheritance with a parent-child-grandchild relationship is provided. The relationship of multi-level inheritance is illustrated using a base class, child class, and grandchild class, with clear inheritance relationships explained.', 'The implementation of inheritance in Python classes is demonstrated by creating parent, child, and grandchild classes with respective methods. The demonstration includes the creation of methods like assignName, assignAge, showAge, assignGender, and showGender for the parent, child, and grandchild classes.']}, {'end': 3124.089, 'start': 2835.227, 'title': 'Multi-level inheritance in python', 'summary': 'Explains the concept of multi-level inheritance in python, where a parent class is inherited by a child class and a grandchild class, and demonstrates the use of methods to assign and print name, age, and gender for the grandchild object.', 'duration': 288.862, 'highlights': ["Parent class with method 'showName' assigned self.name and child class with method 'getAge' assigned self.age The parent class is defined with a method 'showName' which assigns the attribute self.name, while the child class is created with a method 'getAge' which assigns the attribute self.age.", "Grandchild class with methods 'getGender' and 'showGender' assigned self.gender and return self.gender respectively A grandchild class is created with methods 'getGender' and 'showGender' which assign and return the attribute self.gender respectively.", 'Demonstration of multi-level inheritance by creating an object of the grandchild class and assigning and printing name, age, and gender The concept of multi-level inheritance is demonstrated by creating an object of the grandchild class and assigning name, age, and gender to the object, followed by printing these attributes using the show methods.']}], 'duration': 454.469, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/Uo6PpmDuBUU/pics/Uo6PpmDuBUU2669620.jpg', 'highlights': ['The chapter covers the concept of multiple inheritance with parent1 and parent2 properties.', 'The explanation of multi-level inheritance with a parent-child-grandchild relationship is provided.', 'Demonstration of multi-level inheritance by creating an object of the grandchild class and assigning and printing name, age, and gender.', 'The implementation of inheritance in Python classes is demonstrated by creating parent, child, and grandchild classes with respective methods.', "Grandchild class with methods 'getGender' and 'showGender' assigned self.gender and return self.gender respectively.", "Parent class with method 'showName' assigned self.name and child class with method 'getAge' assigned self.age."]}], 'highlights': ['The launch of a free learning platform called Great Learning Academy offering nearly 100 courses including Data Science, AI, and Cloud Computing, with certification upon completion.', 'The significance of object-oriented programming in Python, highlighting the prevalence of objects and classes in the real world.', 'Object Oriented Programming helps in representing real-world entities in programming, enabling the creation of classes and objects with properties and behaviors.', 'Classes are templates or blueprints for real-world entities, defining properties and behaviors, while objects are specific instances of a class, such as specific phone models like Apple, Motorola, and Samsung.', 'A class in Python is a user-defined data type, encapsulating attributes (properties) and methods (behaviors), resembling inbuilt data types like int, float, and boolean structures.', 'Objects in Python are specific instances of a class, representing real-world entities, and can be compared to inbuilt data types by creating specific instances like Apple, Motorola, and Samsung phones.', 'The chapter explains the concept of object-oriented programming by discussing the relationship between real-world entities and objects, including the role of object-oriented programming in representing real-world objects in the programming world.', "It demonstrates the implementation of a class 'phone' in Python, emphasizing the importance of using the class keyword and starting the class name with a capital letter, and defining methods such as makeCall and playGame.", "The chapter highlights the instantiation of an object of the 'phone' class, emphasizing the process of creating a specific instance from the class blueprint and invoking methods from the object, such as makeCall and playGame.", 'The chapter illustrates the process of defining a phone class and adding methods to set color, set cost, show color, and show cost.', 'The methods set color, set cost, show color, and show cost are defined to enable the setting and displaying of the color and cost of the phone object.', 'The chapter also includes the demonstration of methods make call and play game, showcasing the ability to perform actions such as making a call and playing a game using the phone object.', "A constructor in Python allows for the assignment of all object values at the time of creation, demonstrated through the 'employee' class and the 'init' method, streamlining attribute assignment compared to separate methods.", "The 'init' method in Python defines the constructor, as shown in the 'employee' class, where it takes parameters such as name, age, salary, and gender, streamlining the object creation process.", "Using a constructor in Python eliminates the need for separate methods to assign attributes such as color or cost, as demonstrated in the context of the 'employee' class, simplifying the object creation process.", 'Demonstrating the implementation of a Python class and object example The chapter illustrates the construction of a Python class and object for an employee, showcasing the process of initializing attributes like name, age, salary, and gender, and printing the employee details.', "Instantiating an object 'E1' with employee details The object 'E1' is instantiated with the employee's name as Ram, age as 32, salary as 50,000 rupees per month, and gender as male.", "Invoking the method to print employee details The method 'showEmployeeDetails' is invoked for the object 'E1' to print the employee details, including name, age, salary, and gender.", 'Inheritance allows one class to derive properties from another class, similar to inheriting genetic or financial features from parents or grandparents.', 'The concept of inheritance in Python involves a subclass inheriting the properties of a superclass, demonstrated through a Vehicle and Car class example.', 'The chapter covers the creation of a constructor for the vehicle class, initializing mileage and cost attributes, and demonstrating the requirement to provide values for mileage and cost during object instantiation to avoid errors.', 'The chapter explains basic inheritance in Python, demonstrating how a child class inherits properties and methods from a superclass.', 'The chapter also discusses how to overwrite the init method and create a constructor inside the child class, adding new attributes like TIRES and HP.', 'The chapter explains the concept of class inheritance in Python, highlighting the process of creating a child class, overriding the init method of the parent class, and invoking and printing the details of the child class object, emphasizing the inheritance of methods and attributes.', "The child class 'Car' overrides the init method of the parent class 'Vehicle' to include additional attributes like 'tires' and 'HP', demonstrating the concept of method overriding and extending the functionality of the parent class.", "The example demonstrates the instantiation of a 'Car' object, passing values for mileage, cost, number of tires, and HP, showcasing the process of creating objects and initializing attributes in a child class in Python.", 'In Python, inheritance types include single, multiple, multi-level, and hybrid inheritance.', 'Multiple inheritance in Python involves a child class inheriting from more than one parent class.', 'The derived class inherits features from parent1 and parent2, possessing properties and methods from both parents.', 'The process involves creating parent classes, defining methods to assign and show strings, and instantiating a child class to showcase the concept of multiple inheritance.', 'The chapter covers the concept of multiple inheritance with parent1 and parent2 properties.', 'The explanation of multi-level inheritance with a parent-child-grandchild relationship is provided.', 'Demonstration of multi-level inheritance by creating an object of the grandchild class and assigning and printing name, age, and gender.', 'The implementation of inheritance in Python classes is demonstrated by creating parent, child, and grandchild classes with respective methods.', "Grandchild class with methods 'getGender' and 'showGender' assigned self.gender and return self.gender respectively.", "Parent class with method 'showName' assigned self.name and child class with method 'getAge' assigned self.age."]}