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

1. method

1.1. accessbility

1.2. modifier

1.2.1. static

1.2.2. non static

1.3. void return

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

2. constructor method

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

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

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

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

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

3.1. Local

3.1.1. Create local variable 'x'

3.2. Field

3.2.1. Create field 'x'

3.3. Field in Type...(class)

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

3.4. Parameter

3.4.1. Create parameter 'x'

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

4.1. มี main,oncreate

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

4.2. ไม่มีเมน

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

4.3. abstract

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

4.4. interface

4.4.1. 1 abstract method

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

5.1. life cycle(main,oncreate)

5.1.1. สั่งทำงาน

5.2. ธรรมดา

5.2.1. มี body

5.3. abstract

5.3.1. มีแต่ชื่อ

5.4. constructor

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

6. ตัวแปร variable

6.1. accessbility

6.1.1. Default ไม่เขียน

6.1.2. Public

6.1.3. Private

6.1.4. Protected

6.2. modifier

6.2.1. static

6.2.2. non static

6.3. data type

6.3.1. ประเภท เช่น int double

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

7. การดึงเมธอดอื่นมาทำงาน

7.1. สร้าง object ของคลาสนั้น

7.1.1. คลาสธรรมดา

7.1.2. Abstract class (จะ implement abstract method เข้ามา)

7.1.3. interface class(จะ implement abstract method เข้ามา)

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

8.1. การปกป้อง(Encapsulation) default public private protected คือ การรวมกลุ่มข้อมูล

8.2. การสืบทอด(Inheritance) extends implements คือการยอมให้นำไปใช้ หรือเขียนเพิ่มมาแทนของเดิม

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

8.3.1. (Overloading)

8.3.2. Overriding)