#Instance Method Example

class Student:

    def __init__(self,a,b):
        self.a=a
        self.b=b

    def avg(self):
        return (self.a+self.b)/2


s1=Student(10,20)
print(s1.avg())


# Class Method Implementation

class Student:
    name='Student'
    def __init__(self,a,b):
        self.a=a
        self.b=b

    @classmethod
    def info(cls):
        return cls.name
print(Student.info())            

#Static Method Implementation

class Student:
    name='Student'
    def __init__(self,a,b):
        self.a=a
        self.b=b

    @staticmethod
    def info():
        return 'This is a student class'

print(Student.info())
