Presentation is loading. Please wait.

Presentation is loading. Please wait.

Object-Oriented Programming เอกสารประกอบการบรรยาย รายวิชา 204200 Browser-Based Application Development.

Similar presentations


Presentation on theme: "Object-Oriented Programming เอกสารประกอบการบรรยาย รายวิชา 204200 Browser-Based Application Development."— Presentation transcript:

1 Object-Oriented Programming เอกสารประกอบการบรรยาย รายวิชา 204200 Browser-Based Application Development

2 วัตถุประสงค์ นักศึกษาสามารถอธิบายเกี่ยวกับ Object-Oriented Programming ได้ นักศึกษาสามารถพัฒนาโปรแกรม ประยุกต์บนบราวเซอร์ด้วยแนวคิด Object-Oriented ได้

3 หัวข้อบรรยาย Object-Oriented Concept Introduction to Object- Oriented Programming

4 Object-Oriented Concept Object & Class Inheritance ( การสืบทอด ) Polymorphism Encapsulation

5 Introduction to Object- Oriented Programming

6 Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

7 Object Object World Message Method/Operation Interface Event Responsibilities

8 Object

9 Click ( )

10 Object Person Post Office Deliver (Mail) Deliver Send Mail

11 Object Person Vending Machine Buy Pepsi Sell (10 Baht, Pepsi) Sell

12 Object PersonElevator Go to 3 rd floor MoveToFloor (3) MoveToFloor Open Close

13 Class Person  Somchai  Somsri  Somsak  Somying

14 Class Student  Somchai  Somsri  Somsak  Somying

15 Class Tennis Player Paradorn Venus Marat Martina

16 Class Institute Social Technology Engineering Science Agricultural Technology

17 Class Template Name Attributes Operations Responsibilities

18 Class Name Attributes Operations Responsibilit ies

19 Class Student StudentID FirstName LastName Address etc… RegisterForCourse DropCourse etc...

20 Class Tennis Player FirstName LastName Nationality Ranking etc… RegisterForTournament etc...

21 Class Car Car Reg. Number Maker Model Color etc… Accelerate Stop etc...

22 Class Airplane Plane Number Manufacturer Model etc… TakeOff Landing etc...

23 Object & Class Student  Somchai  Somsri  Somsak  Somying

24 Object & Class Student  Somchai  Somsri  Somsak  Somying Student StudentID FirstName LastName Address etc… RegisterForCourse DropCourse etc...

25 Object & Class Student  Somchai  Somsri  Somsak  Somying Student1 B4555555 Somchai Saetung 7146 Suranivet 7 etc… RegisterForCourse DropCourse etc...

26 Student1 B4555555 Somchai Saetung 7146 Suranivet 7 etc… RegisterForCourse DropCourse etc... Student StudentID FirstName LastName Address etc… RegisterForCourse DropCourse etc...

27 Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

28 Inheritance Animal DogPersonCat

29 Inheritance Land Vehicle TruckCarBus

30 Inheritance Transaction Rental Transaction Lease Transaction Sales Transaction

31 Inheritance Class Hierarchy Sub Class Super Class Reusability Overriding

32 Inheritance Land Vehicle Car Toyota TruckBus ViosAltisCamry

33 Transaction transNo transDate transTime etc… Rental Transaction Lease Transaction Sales Transaction transNo transDate transTime etc… quantitySold… transNo transDate transTime etc… memberNo… transNo transDate transTime etc… duration…

34 Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

35 Polymorphism DrawChart DrawChart(1) DrawChart(1,2,1,2) DrawChart(1,1,1) DrawTriangle(1,1,1) DrawRect(1,2,1,2) DrawCircle(1)

36 Polymorphism Add(integer, integer) Add(string, string) Add(string, integer) Add(1,1)  2 Add(“Hello”, “World”)  “HelloWorld” Add(“Hello”, 2)  “Hello2” Add(2, “Hello”)  ?

37 Polymorphism :PaySlip :HourlyPaidEmployee :WeeklyPaidEmployee :MonthlyPaidEmployee  getTotalPay() calculatePay()

38 Polymorphism Overloading

39 Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation Class Relationship

40 Encapsulation Abstraction Information Hiding Security

41 Encapsulation Student StudentID: B4555555 FirstName: Somchai LastName: Saetung Courses Registered: [204204], [204203] etc… DropCourse SetName GetName etc...

42 Encapsulation Person Vending Machine Buy Pepsi Sell (10 Baht, Pepsi) Sell

43 Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

44 Introduction to Object- Oriented Programming

45

46 Oracle SQL Access FoxPro ASP Engine Web Browser Introduction to Object- Oriented Programming Web Server ADOData Provider ODBC ComponentsASP Script

47 ASP Engine Web Browser Introduction to Object- Oriented Programming Web Server Database

48 ASP Engine Web Browser Introduction to Object- Oriented Programming Web Server Database

49 Oracle SQL Access FoxPro ASP Engine Web Browser Introduction to Object- Oriented Programming Web Server ADOData Provider ODBC Components ASP Script

50 Oracle SQL Access FoxPro ASP Engine Web Browser Introduction to Object- Oriented Programming Web Server ADOData Provider ODBC Class ASP Script

51 ASP Engine Introduction to Object- Oriented Programming Web Server ASP Classes

52 ASP Engine Introduction to Object- Oriented Programming Web Server ASP Classes Database

53 ASP Engine Web Browser Introduction to Object- Oriented Programming Web Server Database

54 หัวข้อบรรยาย Object-Oriented Concept Introduction to Object- Oriented Programming

55 Object-Oriented Concept Object & Class Inheritance ( การสืบทอด ) Polymorphism Encapsulation

56 Introduction to Object- Oriented Programming


Download ppt "Object-Oriented Programming เอกสารประกอบการบรรยาย รายวิชา 204200 Browser-Based Application Development."

Similar presentations


Ads by Google