马上开始. 它是免费的哦
注册 使用您的电邮地址
Class 作者: Mind Map: Class

1. constructor method

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

1.2. การเรียกใช้ contructor method

1.2.1. เพื่อสร้าง object Class1 c1=new Class1();

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

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

2. ประเภทของ class

2.1. 1.มี main.oncreate

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

2.3. 3.abstract class

2.3.1. 1.มี method ธรรมดา

2.3.2. 2.มี abstract method

2.4. 4.interface class

2.4.1. 1.abstract method

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

3.1. 1.llfe cycle (main.oncreate)สั่งทำาน

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

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

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

4. ตัวแปร variable

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

4.1.1. accessibility

4.1.1.1. Defaulit

4.1.1.2. public

4.1.1.3. private

4.1.1.4. protected

4.1.2. modifier

4.1.2.1. static

4.1.2.2. non-static

4.1.3. data type ประเภท

4.1.3.1. int

4.1.3.2. double

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

4.1.4.1. public static int a=2;

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

4.2.1. local

4.2.1.1. อยู่ในวงเล็บอยู่ในปีกกา

4.2.2. feild

4.2.2.1. อยู่นอกปีกกาแต่อยู่ใน Void

4.2.3. feild in type

4.2.3.1. อยู่นอก void (class)

4.2.4. parameter

4.2.4.1. รอรับค่า parameter

5. Method

5.1. มี 4 ลักษณะ

5.1.1. accessibility

5.1.2. modifier => static/non-static

5.1.3. void return

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