#instance method
class Person:
    def __init__(self,first_name,last_name,age):
        self.first_name=first_name
        self.last_name=last_name
        self.age=age
    def full_name(self):
        return f"{self.first_name} {self.last_name}"

    def is_above_18(self):
        return self.age>18
p1=Person('hersit','singh',2)
p2=Person('abhishek','singh',24)
print(p1.is_above_18())

print(p1.full_name())














