[TIP] ทำไมต้องตั้งชื่อตัวแปรขึ้นต้นด้วย m

|
เช่น mNotesCursor The m denotes a member field and is part of the Android coding style standards.

ย่อมากจาก member และเป็นมาตรฐานของ Anroid coding style แค่นั้นแหละ
edit: member คือเป็นตัวแปรของ class ใช้ร่วมกันกับ method อื่นๆใน class ได้

0 ความคิดเห็น:

แสดงความคิดเห็น