html5-img
1 / 21

Object Oriented Programing

Object Oriented Programing. Exceed Camp Project. Created By Oakvale Original Source By M( shape ) Template PPT By http://www.templateswise.com. Meaning & Concept Of OOP. OOP เป็นสไตล์การเขียนโปรแกรม OOP เป็นการมอง และแบ่งแยกโปรแกรมออกมาเป็นส่วนๆ เป็นชิ้นๆ.

ivan-dale
Download Presentation

Object Oriented Programing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Object OrientedPrograming Exceed Camp Project Created By Oakvale Original Source By M(shape) Template PPT By http://www.templateswise.com

  2. Meaning & Concept Of OOP • OOP เป็นสไตล์การเขียนโปรแกรม • OOP เป็นการมอง และแบ่งแยกโปรแกรมออกมาเป็นส่วนๆ เป็นชิ้นๆ

  3. Meaning of Class & Object • Class เป็นต้นแบบ (blueprint) ในการสร้าง object • Object เป็น instance of class Class Person Class

  4. Classมีอะไรบ้าง? • attribute == ตัวแปร • behavior == method Class Person Class

  5. Object is instance of Class Class Person Class

  6. Ready for Typing Person Class? Class Person Class

  7. Declare Attributeof Person Class Class Person Class

  8. Constructor of Person Class Class Person Class

  9. WalkAhead() Method Class Person Class

  10. CanDrink() Method Class Person Class

  11. ToString() Method Class Person Class

  12. Let’s Use Person Class Class Person Class

  13. << OOP Pause >>

  14. Primitive VS Reference Data type Data type • int, float, double, char, sting is Primitive. • แล้วอะไรที่ไม่ใช่ Primitive Data Type?? • Array เป็น Primitive Data Type? • Class ที่เราเขียนเอง เป็น type ไหนอ่ะ?? • Reference == Data Type ที่อ้างอิงตำแหน่งที่ในหน่วยความจำ Data type

  15. What’s difference BetweenPrimitive VS Reference Data type Data type Primitive Reference int a=5; int b=3; a=b; Circle a= new Circle( 5 ); Circle b= new Circle( 3 ); a=b; 5 a = 3 a = 5 a 3 b

  16. About Attribute Access Modifier • private  เห็นได้เฉพาะใน class เท่านั้น • public  ทุกคนเรียกใช้ได้

  17. << OOP Continue >>

  18. UML • UnifiedModelingLanguage UML ถูกใช้ในการสื่อสารกันภายในทีมเพื่อให้เข้าใจตรงกัน รวมถึงช่วยในการ แบ่งงาน แบ่งส่วน ของโปรแกรม Resource Form http://www.thaiall.com/uml/indexo.html

  19. Many Type of UML Resource Form http://www.thaiall.com/uml/indexo.html

  20. Sample UML Class Diagram Resource Form http://www.thaiall.com/uml/indexo.html

  21. May the ForcebewithYOU. …^( ^ ^ )^... Thanks, your watching.

More Related