Class
by Non Aia

1. ตัวแปร variable
1.1. ลักษณะของตัวแปร
1.1.1. accessibility
1.1.1.1. Defaulit
1.1.1.2. public
1.1.1.3. private
1.1.1.4. protected
1.1.2. modifier
1.1.2.1. static
1.1.2.2. non-static
1.1.3. data type ประเภท
1.1.3.1. int
1.1.3.2. double
1.1.4. assign value การกำหนดค่า
1.1.4.1. public static int a=2;
1.2. ตำแหน่งของตัวแปร
1.2.1. local
1.2.1.1. อยู่ในวงเล็บอยู่ในปีกกา
1.2.2. feild
1.2.2.1. อยู่นอกปีกกาแต่อยู่ใน Void
1.2.3. feild in type
1.2.3.1. อยู่นอก void (class)
1.2.4. parameter
1.2.4.1. รอรับค่า parameter
2. Method
2.1. มี 4 ลักษณะ
2.1.1. accessibility
2.1.2. modifier => static/non-static
2.1.3. void return
2.1.4. รับ/ไม่รับค่าพารามิเตอร์
3. constructor method
3.1. method ที่ชื่อเดียวกับ class
3.2. การเรียกใช้ contructor method
3.2.1. เพื่อสร้าง object Class1 c1=new Class1();
3.2.2. เพื่อสั่งให้กำหนดค่าเริ่มต้น new Class();
3.3. ถ้ามีมากกว่า 1 คอนสตักเตอร์ การรับค่าพารามิเตอร์ต้องไม่เหมือนกัน(overloading constructor)
4. ประเภทของ class
4.1. 1.มี main.oncreate
4.2. 2.ไม่มีเมน
4.3. 3.abstract class
4.3.1. 1.มี method ธรรมดา
4.3.2. 2.มี abstract method
4.4. 4.interface class
4.4.1. 1.abstract method