Learn Python OOP - Inner Classes

preview_player
Показать описание
This video talks about inner classes. Inner classes allow us to nest classes with related functionalities inside another class. They are helpful in designing coherent system design as well as they can be useful for hiding implementation details of inner class.

We can make every inner class attached to a specific instance of outer class. Inner classes are also called nested classes. You can learn how to create inner classes using this video. This tutorial is for beginners who know basics of Python already with some object oriented ideas. If you don't know, then watch some of the other videos on this channel to learn complete Python programming.

#Python #ObjectOrientedProgramming #LearnPython
If you like our content, click on *SUBSCRIBE* button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Рекомендации по теме
Комментарии
Автор

Using this method, wouldn’t that make the default object less general?
What I mean by that is that now every computer object that gets created will have “8gb” of memory by default and you have to manually change that for every new computer object you make.

Is there a way to instantly specify what size of memory I want my computer object to have without having to write an additional line of code?

lophyre
Автор

Thank you for the explanation. but however it would be much better if you further demo the use case of such method. I find it's hard for me to grab the insight of variants of techniques using. I think I should watch more videos and build more projects!

swimmingshi