static method ควรใช้ตอนที่ method ถูกเรียกใช้บ่อยๆ
เราสามารถเรียกใช้งานตัวแปรหรือ method เหล่านี้ได้โดยตรงโดยไม่ต้องประกาศ instance แต่อย่างใดโดยปกติเราจะเรียกใช้งาน Object โดยผ่านการประกาศ instance และเรียกใช้งานเมธอดอีกที
ประโยชน์ของ static method
Moderators: mindphp, ผู้ดูแลกระดาน
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 1965 Views
-
Last post by mindphp
13/09/2012 2:42 pm
-
- 1 Replies
- 5188 Views
-
Last post by mindphp
10/01/2012 2:25 pm
-
- 0 Replies
- 417 Views
-
Last post by offing
31/01/2015 10:36 am
-
- 1 Replies
- 2633 Views
-
Last post by Supakit Dangprasert
31/01/2018 7:19 pm
-
-
ประโยชน์ของ IOT - internet of things
by chaiyasitpraphut » 13/11/2019 6:49 pm » in IOT - Internet of things - 0 Replies
- 742 Views
-
Last post by chaiyasitpraphut
13/11/2019 6:49 pm
-
-
-
ประโยชน์ของ Internet of Thing : IOT
by NickAriya12 » 08/08/2016 4:20 pm » in IOT - Internet of things - 0 Replies
- 960 Views
-
Last post by NickAriya12
08/08/2016 4:20 pm
-
-
-
ประโยชน์ของ VPN - วีพีเอ็น คืออะไร
by anuwat somsakul » 14/08/2018 4:58 pm » in IOT - Internet of things - 1 Replies
- 2677 Views
-
Last post by Malugo Kung
24/06/2019 3:58 pm
-
Who is online
Users browsing this forum: No registered users and 5 guests