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

Slides:



Advertisements
Similar presentations
OO Programming in Java Objectives for today: Constructors Method Overriding & Overloading Encapsulation.
Advertisements

General OO Concepts Objectives For Today: Discuss the benefits of OO Programming Inheritance and Aggregation Abstract Classes Encapsulation Introduce Visual.
Chapter 1 Inheritance University Of Ha’il.
Chapter 4&5 Defining Classes Copyright © 2010 Pearson Addison-Wesley. All rights reserved.
ICS 201 Inheritance Introduction to Computer Science
OBJECT ORIENTED PROGRAMMING M Taimoor Khan
Solutions to Review Questions. 4.1 Define object, class and instance. The UML Glossary gives these definitions: Object: an instance of a class. Class:
CS-2135 Object Oriented Programming
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
OOP & JAVA. HelloWorld.java /** * The HelloWorld class is an application that * displays "Hello World!" to the standard output. */ public class HelloWorld.
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Lecturer: Dr. AJ Bieszczad Chapter 66-1 Object-Oriented analysis and design Special nature of OO development Use cases Design with UML OO system design.
Marcelo Santos – OOAD-CDT309, Spring 2008, IDE-MdH 1 Object-Oriented Analysis and Design - CDT309 Period 4, Spring 2008 Object-oriented concepts.
Object-oriented Programming Concepts
Visual Basic 6.0 Derived from BASIC Developed by Microsoft in 1998 An event driven programming language Associated with a development environment.
1 INTRODUCTION TO OOP Objective: Know the difference between functional programming and OOP Know basic terminology in OOP Know the importance of OOP Know.
BACS 287 Basics of Object-Oriented Programming 1.
CPT 140 Programming Constructs1 OBJECT ORIENTED TECHNOLOGY Terminology and Basic Concepts.
1 INTRODUCTION TO OOP Objective: Know the difference between functional programming and OOP Know basic terminology in OOP Know the importance of OOP Know.
CSS/417 Introduction to Database Management Systems Workshop 5.
Object Oriented Programming Lecturer: Andreas P. Adi
MT311 Java Application Development and Programming Languages Li Tak Sing( 李德成 )
CONCEPTS OF OBJECT ORIENTED PROGRAMMING. Topics To Be Discussed………………………. Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism.
Introduction to Objects Adapted from “TEN STEPS TO OBJECT-SPEAK” a CPT Tech Talk by Joy Starks September 17, 1999.
การออกแบบและพัฒนา ซอฟต์แวร์ บทที่ 8 Object-Oriented Software Design ปริญญา น้อยดอนไพร สาขาวิชาวิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์และเทคโนโลยี มหาวิทยาลัยราชภัฏสุราษฎร์ธานี
C# Programming Fundamentals of Object-Oriented Programming Fundamentals of Object-Oriented Programming Introducing Microsoft.NET Introducing Microsoft.NET.
Springl 2008 MIS380: Object-Oriented Programming using Java 1 Spring 2008.
3rd Country Training, K.Subieta: System Engineering and Databases. Lecture 3, Slide 1 February 20, 2004 Lecture 3: Introduction to Software Analysis and.
CIS 451: ASP.NET Objects Dr. Ralph D. Westfall January, 2009.
Stephenson College DP 96 1 Object-Orientation by Derek Peacock.
Object-Oriented Programming (OOP) CSC-2071 (3+1=4 Credits) Lecture No. 1 MBY.
Programming With Java ICS Chapter 8 Polymorphism.
Object Oriented Programming Concepts. Object Oriented Programming Type of programming whereby the programmer defines the data types of a data structure.
1 Object-Oriented Systems Development Bahrami © Irwin/ McGraw-Hill Chapter 2: Object Basics Object-Oriented Systems Development Using the Unified Modeling.
How to Connect to Database ODBC (Open Database Connectivity) ADO (ActiveX Data Object) ASP Code To Connect to Database Recordset Object Navigating through.
OBJECT-ORIENTED PROGRAMMING (OOP) WITH C++ Instructor: Dr. Hany H. Ammar Dept. of Electrical and Computer Engineering, WVU.
CSC241 Object-Oriented Programming (OOP) Lecture No. 1.
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Learners Support Publications Object Oriented Programming.
The Clash of the (database) Cultures Object- oriented Relational.
Introduction to Object Orientation Dr. Ahmed Youssef.
Basic Concepts of Object Orientation Object-Oriented Analysis CIM2566 Bavy LI.
November 28, 2005ICP: Chapter 9: Object Oriented Programming 1 Introduction to Computer Programming Chapter 9: Object Oriented Programming Michael Scherger.
1 Unified Modeling Language, Version 2.0 Chapter 2.
WEB SERVER SOFTWARE FEATURE SETS
Object-Oriented Principals Dwight Deugo Nesa Matic
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
03 | Object-Oriented Programming Gerry O’Brien | Technical Content Development Manager Paul Pardi | Senior Content Publishing Manager.
Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
1/7/2016www.infocampus.co.in1. 1/7/2016www.infocampus.co.in2 Web Development training gives you and all-round training in both the design and the development.
SPECTO TRAINING contact us: , mail :
Programming With Java ICS201 University Of Ha’il1 ICS 201 Introduction to Computer Science Inheritance.
Programming in Java: lecture 7
Sachin Malhotra Saurabh Choudhary
JAVA By Waqas.
The Movement To Objects
Programming in Java Sachin Malhotra, Chairperson, PGDM-IT, IMS Ghaziabad Saurabh Chaudhary, Dean, Academics, IMS Ghaziabad.
OOP What is problem? Solution? OOP
Object Oriented Concepts -I
INTRODUCTION TO OOP Objective:
PRINCIPALES OF OBJECT ORIENTED PROGRAMMING
C++.
Object-oriented programming
Basic Object Oriented Approach
Lesson Objectives Aims Key Words:
Object Oriented Programming
Object Oriented Analysis and Design
Object Oriented Programming(OOP)
Presentation transcript:

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

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

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

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

Introduction to Object- Oriented Programming

Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

Object Object World Message Method/Operation Interface Event Responsibilities

Object

Click ( )

Object Person Post Office Deliver (Mail) Deliver Send Mail

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

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

Class Person  Somchai  Somsri  Somsak  Somying

Class Student  Somchai  Somsri  Somsak  Somying

Class Tennis Player Paradorn Venus Marat Martina

Class Institute Social Technology Engineering Science Agricultural Technology

Class Template Name Attributes Operations Responsibilities

Class Name Attributes Operations Responsibilit ies

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

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

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

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

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

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

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

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

Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

Inheritance Animal DogPersonCat

Inheritance Land Vehicle TruckCarBus

Inheritance Transaction Rental Transaction Lease Transaction Sales Transaction

Inheritance Class Hierarchy Sub Class Super Class Reusability Overriding

Inheritance Land Vehicle Car Toyota TruckBus ViosAltisCamry

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…

Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

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

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”)  ?

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

Polymorphism Overloading

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

Encapsulation Abstraction Information Hiding Security

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

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

Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation

Introduction to Object- Oriented Programming

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

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

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

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

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

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

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

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

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

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

Introduction to Object- Oriented Programming