""" MARKDOWN
---
YamlDesc: CONTENT-ARTICLE
Title: python builtin class attributes
MetaDescription: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials
MetaKeywords: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials
Author: Hemaxi
ContentName: class-builtin-attributes
---
MARKDOWN """

""" MARKDOWN
# Python Class Built-in Attributes
* Object Oriented Programming, in PYTHON
* Classes in PYTHON have a set of built in attributes and functions
* Class built-in attributes
* `__doc__`    Prints the CLASS Documentation string
* `__name__`   prints the CLASS Name
* `__module__` module name where the class is defined
* `__bases__`  base class list in case of Inheritance
MARKDOWN """

# MARKDOWN ```
# 1. Create a CLASS
###################
class Learnpython:
    'This is a brief note about the class, This is the LEARNPYTHON Class'
    # a class Variable
    ti_var   = 100
    # a class list
    ti_list  = ["a","b","c"]
    # a class tuple
    ti_tuple = ("x","y","z")
    # a class dictionary
    ti_dictionary = {"1":"A", "2":"b", "3":"c"}

    # a class function
    def ti_function(self):
        "This is a class function"
        print("This is a message from the LEARNPYTHON Class ti_function")


# 2. Using the built-in attributes
##################################
# Create an Object of the Class
tiObject = Learnpython()

# __doc__ : Prints the CLASS Documentation string
print(Learnpython.__doc__)

#__name__ : prints the CLASS Name
print(Learnpython.__name__)

# __module__ : module name where the class is defined
print(Learnpython.__module__)

# __bases__: base class list in case of Inheritance
print(Learnpython.__bases__)
# MARKDOWN ```

""" MARKDOWN
---
YamlDesc: CONTENT-ARTICLE
Title: python builtin class attributes
MetaDescription: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials
MetaKeywords: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials
Author: Hemaxi
ContentName: class-builtin-attributes
---
MARKDOWN """

""" MARKDOWN
# Python Class Built-in Attributes
* Object Oriented Programming, in PYTHON
* Classes in PYTHON have a set of built in attributes and functions
* Class built-in attributes
* `__doc__`    Prints the CLASS Documentation string
* `__name__`   prints the CLASS Name
* `__module__` module name where the class is defined
* `__bases__`  base class list in case of Inheritance
MARKDOWN """

# MARKDOWN ```
# 1. Create a CLASS
###################
class Learnpython:
    'This is a brief note about the class, This is the LEARNPYTHON Class'
    # a class Variable
    ti_var   = 100
    # a class list
    ti_list  = ["a","b","c"]
    # a class tuple
    ti_tuple = ("x","y","z")
    # a class dictionary
    ti_dictionary = {"1":"A", "2":"b", "3":"c"}

    # a class function
    def ti_function(self):
        "This is a class function"
        print("This is a message from the LEARNPYTHON Class ti_function")


# 2. Using the built-in attributes
##################################
# Create an Object of the Class
tiObject = Learnpython()

# __doc__ : Prints the CLASS Documentation string
print(Learnpython.__doc__)

#__name__ : prints the CLASS Name
print(Learnpython.__name__)

# __module__ : module name where the class is defined
print(Learnpython.__module__)

# __bases__: base class list in case of Inheritance
print(Learnpython.__bases__)
# MARKDOWN ```

MARKDOWN --- YamlDesc: CONTENT-ARTICLE Title: python builtin class attributes MetaDescription: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials MetaKeywords: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials Author: Hemaxi ContentName: class-builtin-attributes --- MARKDOWN MARKDOWN # Python Class Built-in Attributes * Object Oriented Programming, in PYTHON * Classes in PYTHON have a set of built in attributes and functions * Class built-in attributes * `__doc__`    Prints the CLASS Documentation string * `__name__`   prints the CLASS Name * `__module__` module name where the class is defined * `__bases__`  base class list in case of Inheritance MARKDOWN # MARKDOWN ``` # 1. Create a CLASS ################### # a class Variable # a class list # a class tuple # a class dictionary # a class function # 2. Using the built-in attributes ################################## # Create an Object of the Class # __doc__ : Prints the CLASS Documentation string #__name__ : prints the CLASS Name # __module__ : module name where the class is defined # __bases__: base class list in case of Inheritance # MARKDOWN ```