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

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

1.1. 1. accesibility

1.2. 2. modifier

1.2.1. 2.1 static

1.2.2. 2.2 non static

1.3. 3. void return

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

2. Constructor method

2.1. 1. เมธอดที่มีชื่อเดียวกับคลาส

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

2.2.1. 2.1 เพื่อสร้าง object

2.2.1.1. Class c1=new Class1();

2.2.2. 2.2 เพื่อสั่งให้กำหนดค่าเริ่มต้น

2.2.2.1. new class();

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

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

3.1. 1. local

3.1.1. Create local variable 'x'

3.2. 2. field

3.2.1. Create field 'x'

3.3. 3. field in type

3.3.1. Create field 'x' in type 'MainActivity'

3.4. 4. paramiter

3.4.1. Create parameter 'x'

4. คลาสที่มี main

4.1. วิธที่1. สร้าง object ของคลาสนั้น

4.1.1. 1. คลาสธรรมดา C2

4.1.2. 2. Abstract class จะ implement abstract method เข้ามา C3

4.1.3. 3. interface class จะ implement abstract method เข้ามา C4

5. แนวคิดของโปรแกรมเชิงวัตถุ

5.1. 1. การป้องกัน (Encapsulation)

5.1.1. default

5.1.2. public

5.1.3. private

5.1.4. protected

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

6.1. 1. accessibility

6.1.1. Defult

6.1.2. public

6.1.3. private

6.1.4. protected

6.2. 2. modifier

6.2.1. static

6.2.2. non static

6.3. 3. data type

6.3.1. int

6.3.2. doble

6.4. 4. assign value

6.4.1. public static int a=2;

7. Class

7.1. 1. ตัวเเปร

7.2. 2. method

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

8.1. 1. มี main

8.1.1. ตัวแปร

8.1.2. method

8.1.3. main

8.2. 2. ไม่มี main

8.2.1. ตัวแปร

8.2.2. method

8.3. 3. abstract

8.3.1. abstract method

8.3.2. method ธรรมดา

8.4. 4. interface

8.4.1. abstract

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

9.1. 1. life cycle

9.1.1. main,oncreate สั่งทำงาน

9.2. 2. ธรรมดา

9.2.1. มีแต่ body

9.3. 3. abstract

9.3.1. มีแต่ชื่อ

9.4. 4. constructor

9.4.1. ชื่อเดียวกับคลาส