Can you make a class in a class Python?

A class defined in another class is known as inner class or nested class . If an object is created using child class means inner class then the object can also be used by parent class or root class. A parent class can have one or more inner class but generally inner classes are avoided.

Sizin İçin Seçtik  What is object oriented programming in Python with example?

Leave a Reply

Your email address will not be published. Required fields are marked *