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

1. 1. Class เป็นที่เก็บ

1.1. 1. ตัวแปร Variable

1.2. 2. Modfirer

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

2.1. 1. Assessibility

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

2.1.1.1. public

2.1.1.1.1. private

2.2. 2. Mothod

2.2.1. static

2.2.1.1. non static

2.3. 3. Data type  ประเภท

2.3.1. เช่น

2.3.1.1. int

2.3.1.1.1. duble

2.4. 4. Assign value การกำหนดค่า

2.4.1. public static int a=2;

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

3.1. มี 4 ลักษณะ

3.1.1. 1. Accessibillty

3.1.2. 2. Modfirer

3.1.2.1. 2. Non static

3.1.3. 3. Void return

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

4. 4. Constructormethod

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

4.2. การเรียกใช้ Constructormethod

4.2.1. 1. เพื่อสร้าง Object Class c1= new class();

4.2.2. เพื่อสั่งให้กำหนดค่าเริ่มต้น New Class();

4.3. ถ้ามีมากกว่าหนึ่ง คอนสตักเตอร์ การรับค่าพารามิเตอร์ต้องไม่เหมื่อนกัน (Overlonding Contructormethod)

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

5.1. มี 4 ตำแหน่ง

5.1.1. 1.local

5.1.2. fied

5.1.3. class

5.1.3.1. 1.fied in type

5.1.4. paramiter

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

6.1. 1. มี main , oncreate

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

6.2. 2. ไม่มีเมน

6.2.1. 1.ตัวแปร

6.2.2. 2.method(function)

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

7.1. มี 4 ประเภท

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

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

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

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

8. 8. คลาสที่มี min oncreate เรียกเมธอดของ class อื่นมาทำงาน วิธีที่ 1 สร้าง object ของคลาสนั้นเพื่อเรียก

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

8.2. 2. Abstract class (จะ implement abstract method เข้ามา)  c3

8.3. 3. interface class

8.3.1. (จะ implement abstract method เข้ามา ) c4

8.4. วิธีที่2

8.4.1. 1. ธรรมดา   ใช้การ   extends

8.4.2. 2. Abstract class   ใช้การ extends จะ implement abstract method เข้ามา