# ตัวอย่างโปรแกรมสำหรับการเรียน OOP

### วิธีติดตั้ง

เปิด CMD / Terminal

```python
pip install stayuKit
```

### วิธีเล่น

เปิด IDLE ขึ้นมาแล้วพิมพ์...

```python
from stayuKit import Student,SpecialStudent

print('======1 Jan======')
student0=SpecialStudent('Mark Zuckerberg','Bill Gates')
student0.ShowEXP()
student0.AskEXP()
student0.ShowEXP()
student1=Student('Albert') # คือตัวแปรประเภท object
print(student1.name)
student1.Hello() #Calling method

student2=Student('Steve') # คือตัวแปรประเภท object
print(student2.name)
student2.Hello()

print('======2 Jan======')
print('----ใครอยากเรียน coding บ้าง ได้ 10 exp')
student1.PassLesson(10) #Calling method

print('======3 Jan======')
student1.name='Albert Ei' # Modify attribute
print('ตอนนี้ exp ของแต่ละคนได้เท่าไหร่แล้ว')

print(student1.name,student1.exp)
print(student2.name,student2.exp)

print('======4 Jan======')
for i in range(5):
	student2.Coding()

student1.ShowEXP()
student2.ShowEXP()
พัฒนาโดย: ลุงวิศวกร สอนคำนวณ
FB: https://www.facebook.com/UncleEngineer
YouTube: https://www.youtube.com/UncleEngineer

