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

1. class เป็นที่เก็บตัวแปร

1.1. 1.ตัวแปร variable

1.2. 2.method(function)

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

2.1. accessibility

2.2. Default

2.3. public

2.4. private

2.5. protected

3. assign  value การกำหนดค่า

3.1. public static int a-2;

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

4.1. มี main.oncreate

4.1.1. 1 ตัวแปร 2 method(function) 3.มีmain.oncreate

4.2. 2.ไม่มี main

4.2.1. 1 ตัวแปร 2.method(function)

4.3. 3.abstract

4.3.1. 1 abstract method 2method ธรรมดา

4.4. 4.interface

4.4.1. 1 abstract method

5. ประเภทของmethod

5.1. มี 4 ประเภท

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

5.3. 2. ธรรมดา มี body

5.4. 3. abstract มีแต่ชื่อ

5.5. 4. constructor

6. คลาสที่มี main oncreate เรียกmethod ของ class อื่นมาทำงาน

6.1. 1.สร้าง object ของคลาสนั้น เพื่อเรียกเมธอดของ

6.2. 1.คลาสธรรมดา c2

6.3. 2.

7. modifier

7.1. static

7.2. non static

8. data type ประเภท

8.1. int double

9. ลักษระของ method

9.1. มี 4 ลักษณะ

9.2. 1.accessibility

9.3. 2.modifier =>static/non-static

9.4. 3.void return

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

10. constructor method

10.1. ลักษณะ 1 ที่ชื่อเดียวกับคลาส

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

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

10.2.2. 2.2 เพื่อสั่งให้กำหนดค่าเริ่มต้น new class();

10.3. 3.ถ้ามีมากกว่า 1 constructor การรับค่าพารามิเตอร์ต้องไม่เหมือนกัน (overloading constructor)

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

11.1. แบ่งเป็น 4 ตำแหน่ง

11.2. local

11.3. field

11.4. field in type...(class)

11.5. parameter