'''
Online Python Compiler.
Code, Compile, Run and Debug python program online.
Write your code in this editor and press "Run" button to execute it.
'''
class Car():
def __init__(self,model,color,horse_power,cylinder): # سنقوم بتØÙˆÙŠÙ„ قيمة البراميتر عند إنشاء الكائن
self.model = model # هنا نقوم بنسب قيمة إلى البراميتر
self.color = color # هنا نقوم بنسب قيمة إلى براميتر اللون
self.horse_power = horse_power # هنا نقوم بنسب قيمة إلى براميتر قوة Ø§Ù„ØØµØ§Ù†
self.cylinder = cylinder # هنا نقوم بنسب قيمة إلى براميتر السلندر
# لنقم بإنشاء كائن سيارة
# والآن نستطيع نسب القيم التي نريدها للكائن
car1 = Car("Mercedes","Black",310,6)
car2 = Car("Toyota","White",150,4)
print(car1.model)
print(car1.color)
print(car2.model)
print(car2.color)