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

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

1.1. 3.1 Accessibilty

1.2. 3.2 Modifier

1.2.1. 3.2.1 Static

1.2.2. 3.2.2 Non static

1.3. 3.3 Void return

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

2. #4. Constructor method

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

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

2.2.1. 4.2.1 เพื่อสร้าง Object

2.2.1.1. Class c1=new Class1();

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

2.2.2.1. new class();

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

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

3.1. 6.1 มี main.oncreate

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

3.2. 6.2 ไม่มีเมน

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

3.3. 6.3 abstract

3.3.1. 6.3.1 1. abstract method 2. method ธรรมดา

3.4. 6.4 interface

3.4.1. 6.4.1 1. abstract method

4. #7. ประเถทของเมธอด

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

4.2. 7.2 ธรรมดา มี body

4.3. 7.3 abstract มีแต่ชื่อ

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

5. #9. แนวคิดของโปรแกรมเชิงวัตถุ ( OOP Concepts )

5.1. 1. การปกป้อง ( Encapsulation ) default public private protected คือ การรวมกลุ่มของข้อมูลและ กลุ่มของเพื่อการปกป้อง และเลือกตอบสนอง

5.2. 2. การสืบทอด ( Inheritane ) extends implements คือ การยอมให้น้ำไปใช้ หรือเขียนขึ้นมาทดแทนของเดิม

5.3. 3. การพ้องรูป ( Polymorphism ) มาจากภาษากรีก หมายถึง หลายรูป ( Many Shapes ) ซึ่งมี 2 หลักการที่สำคัญ

5.3.1. 3.1 โอเวอร์โหลดดิ้ง ( Overloading ) มีชื่อโปรแกรมเดียวกัน แต่รายการตัวแปร ( Parameter List ) ต่างกัน

5.3.2. 3.2 โอเวอร์ไรดิ้ง ( Overriding ) มีชื่อและตัวแปรเหมือนกัน เพื่อเขียนพฤติกรรม ( Behavior ) ขึ้นมาใหม่

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

6.1. 2.1 Accesslibilty

6.1.1. Default

6.1.2. Public

6.1.3. Private

6.1.4. Protected

6.2. 2.2 Modifier

6.2.1. Static

6.2.2. Non static

6.3. 2.3 Data type ประเภท

6.3.1. Int

6.3.2. Double

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

6.4.1. Public

6.4.2. Static

6.4.3. Int a=2

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

7.1. 1.1 ตัวเแปร

7.2. 1.2 method

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

8.1. 5.1 local

8.1.1. Create local variable 'x'

8.2. 5.2 field

8.2.1. Create field 'x'

8.3. 5.3 field in type

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

8.4. 5.4 paramiter

8.4.1. Create parameter 'x'

9. #8. คลาสที่มี main oncreate เรียก เมธอดของ class อื่นมาทำงาน

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

9.1.1. 1. คลาสธรรมดา (c2)

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

9.1.3. 3. interface class ( จะ implement abstract method เข้ามา ) c4