# class
class Person:
# class attributes
adress = "no iformation"
# constructor (yapıcı metot)
def __init__(self , name , year):
# object attributes
self.name = name
self.year = year
print("init metodu çalıştı")
# methods
# object instance
p1 = Person(name= "alev" , year= 1990)
p1 = Person("alev" , 1990)
p2 = Person(name="celal",year= 1995)
p2 = Person("celal", 1995)
# updaing
p1.name = "ava"
p1.adress = "sit"
# acesing object
print(f"name {p1.name} year {p1.year} adress: {p1.adress}")
print(f"name {p2.name} year {p2.year} adress: {p2.adress}")
print(p1)
print(p2)
print(type(p1))
print(type(p2))
print(p1 == p2)