Define a class, which has a class parameter and have a same instance parameter.


Topic: Define a class, which has a class parameter and have a same instance parameter.

Solution

class Person:
    name = "Person"
    
    def __init__(self, name = None):
        self.name = name



List all Python Programs