> For the complete documentation index, see [llms.txt](https://gyansetu-python.gitbook.io/python-programming/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gyansetu-python.gitbook.io/python-programming/oops/built-in-class-attributes.md).

# Built-In Class Attributes

### Built-In Class Attributes:

• \_\_**dict**\_\_ − Dictionary containing the class's namespace.&#x20;

• \_\_**doc**\_\_ − Class documentation string or none, if undefined.&#x20;

• \_\_**name**\_\_ − Class name.&#x20;

• \_\_**module**\_\_ − Module name in which the class is defined. This attribute is "**main**" in interactive mode.&#x20;

• \_\_**bases**\_\_ − A possibly empty tuple containing the base classes, in the order of their occurrence in the base class list.

```python
#!/usr/bin/python3

class Employee:
   'Common base class for all employees'
   empCount = 0

   def __init__(self, name, salary):
      self.name = name
      self.salary = salary
      Employee.empCount += 1
   
   def displayCount(self):
     print ("Total Employee %d" % Employee.empCount)

   def displayEmployee(self):
      print ("Name : ", self.name,  ", Salary: ", self.salary)

emp1 = Employee("Zara", 2000)
emp2 = Employee("Manni", 5000)
print ("Employee.__doc__:", Employee.__doc__)
print ("Employee.__name__:", Employee.__name__)
print ("Employee.__module__:", Employee.__module__)
print ("Employee.__bases__:", Employee.__bases__)
print ("Employee.__dict__:", Employee.__dict__ )
```

Output:

![](https://2666241650-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LSc84l98ozg0PCtzUMg%2F-LfEc3WeCAIURsn9JFSO%2F-LfEf6pb4yHHkjEd_Mvu%2Fimage.png?alt=media\&token=ebbb0ddb-2358-4d7f-a664-af35f9493b64)
