Get Started. It's Free
or sign up with your email address
Class by Mind Map: Class

1. class ที่มี main Oncreate เรียก method  class อื่น

1.1. วิธีสร้าง object ของ class

1.1.1. class ธรรมดา C2

1.1.2. Abstract class(จะ implement abstract  method ) C3

1.1.3. interface class

2. ประเภทของเมธอด

2.1. life cycle (main,oncreate) สั่งทำงาน

2.2. ธรรมดา มี Body

2.3. abstructor มีแต่ชื่อ

2.4. constructor

3. ประเภทของคลาส

3.1. main,oncreate

3.2. No main

3.3. abstract class

3.3.1. 1.method ธรรมดา

3.3.2. 2.abstract method

3.4. interface class

3.4.1. 1.abstract method

4. ตำแหน่งของตัวแปร 4 ตำแหน่ง

4.1. local

4.1.1. Create local variable 'X'

4.2. field

4.2.1. Create field 'X'

4.3. field in type.......(class)

4.3.1. Create field 'X' in type 'mainActivity'

4.4. parameter

4.4.1. Create parameter

5. Constructor method

5.1. method ที่ชื่อเดียวกับ class

5.2. การเรียกใช้ constructor method

5.2.1. เพื่อสร้าง object Class c1=new class1();

5.2.2. เพื่อกำหนดค่าเริ่มต้น New class();

5.3. คอนสตักเตอร์ มากกว่า 1 รับค่า/ไม่รับค่าพารามิเตอร์ต้องไม่เหมือนกัน

6. ลักษณะของเมธอด4ลักษณะ

6.1. accessibility

6.2. modifier

6.2.1. static/non static

6.3. void return

6.4. รับ/ไม่รับค่าพารามิเตอร์

7. ลักษณะของตัวแปร

7.1. accessibility

7.1.1. Default(ไม่เขียน)

7.1.2. public

7.1.3. private

7.1.4. protected

7.2. modifier

7.2.1. static

7.2.2. non static

7.3. data type

7.3.1. int

7.3.2. double

7.4. assign valueกำหนดค่า

7.4.1. public,static,int a=2