Python Nested Classes (Inner Class)

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=YV6hf8_jAgE



Duration: 0:00
259 views
8


Nested Classes in Python. Nested Classes allow one class to be defined inside another class. This is useful if a specific class is ever only used by another class and is not declared outside that class. For example, we can define a dragon class inside the mage class. Here, we have a nested class where the dragon class is the inner class, and the mage class is the outer class.

Source Code:
https://github.com/ImKennyYip/python-oop

Python Object Oriented Programming Playlist:
   • Python Object Oriented Programming  

Python Data Structures and Algorithms Playlist:
   • Python Data Structures and Algorithms  

Python Game Programming Projects Playlist:
   • Python Game Programming Tutorial  

Subscribe for more coding tutorials 😄 !