Classes

Function gives you one level of usability and Classes with methods give you a second level of usability.
When you passing the same information more then once for the same thing you can then use Classes instead of repetitive same function.

In Classes function are call Methods

example :

class NewClass(object):
….def __init__(self, element1, element3, etc…):
……..

to be continue ….

Leave a Comment