This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
tutorial:class [2019/01/29 08:20] admin |
tutorial:class [2019/01/29 08:24] (current) admin |
||
|---|---|---|---|
| Line 59: | Line 59: | ||
| end; | end; | ||
| </sxh> | </sxh> | ||
| + | \\ | ||
| - | \\ | ||
| - | |||
| - | \\ | ||
| ---- | ---- | ||
| =====Property===== | =====Property===== | ||
| - | คือ คุณสมบัติของ Object ประกอบไปด้วย Getter (คำสั่งหลัง read) และ Setter (คำสั่งหลัง write)\\ \\ | + | คือ คุณสมบัติของ Class (หรือ Object) เช่น ความยาว ความกว้าง ตำแหน่ง เป็นต้น โครงสร้างของ property นั้นประกอบไปด้วย Getter (คำสั่งหลัง read) และ Setter (คำสั่งหลัง write)\\ \\ |
| เพื่อเป็นการอธิบายให้เห็นภาพ จะขอยกตัวอย่าง | เพื่อเป็นการอธิบายให้เห็นภาพ จะขอยกตัวอย่าง | ||