Introduction to Object Orientation Dr. Ahmed Youssef.

Slides:



Advertisements
Similar presentations
Chapter 4&5 Defining Classes Copyright © 2010 Pearson Addison-Wesley. All rights reserved.
Advertisements

OOP - Object Oriented Programming Object Oriented Programming is an approach to programming that was developed to make large programs easier to manage.
Classes & Objects Computer Science I Last updated 9/30/10.
Chapter 10 Introduction to Objects and Classess 1.
1 CIS601: Object-Oriented Programming in C++ Note: CIS 601 notes were originally developed by H. Zhu for NJIT DL Program. The notes were subsequently revised.
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.
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
Objects First with Java A Practical Introduction using BlueJ
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Marcelo Santos – OOAD-CDT309, Spring 2008, IDE-MdH 1 Object-Oriented Analysis and Design - CDT309 Period 4, Spring 2008 Object-oriented concepts.
1 Introduction to C++ Programming Concept Basic C++ C++ Extension from C.
CO320 Introduction to Object- Oriented Programming Michael Kölling 3.0.
Distribution of Marks Internal Sessional Evaluation Assignments – 10 Quizzes – 10 Class Participation Attendence – 5 Mid – Term Test – 25 External Evaluation.
5.0 Objects First with Java A Practical Introduction using BlueJ David J. Barnes Michael Kölling.
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
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.
Introduction to Object-oriented programming and software development Lecture 1.
Object Oriented Programming CS160 - OOP. Objects Objects are a Objects are a way to organize and conceptualize a program as a set of interacting objects.
5.0 Objects First with Java A Practical Introduction using BlueJ Introduction to Computer Science I Instructor: Allyson Anderson.
การออกแบบและพัฒนา ซอฟต์แวร์ บทที่ 8 Object-Oriented Software Design ปริญญา น้อยดอนไพร สาขาวิชาวิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์และเทคโนโลยี มหาวิทยาลัยราชภัฏสุราษฎร์ธานี
Object-Oriented Programming เอกสารประกอบการบรรยาย รายวิชา Browser-Based Application Development.
Downloaded From:  Objective of this course is to make students familiar with the concepts of object-oriented programming  Concepts.
Stephenson College DP 96 1 Object-Orientation by Derek Peacock.
Guided Notes Ch. 9 ADT and Modules Ch. 10 Object-Oriented Programming PHP support for OOP and Assignment 4 Term project proposal C++ and Java Designer.
1 Object-Oriented Systems Development Bahrami © Irwin/ McGraw-Hill Chapter 2: Object Basics Object-Oriented Systems Development Using the Unified Modeling.
Object Oriented Programming Principles Lecturer: Kalamullah Ramli Electrical Engineering Dept. University of Indonesia Session-3.
CSC241 Object-Oriented Programming (OOP) Lecture No. 1.
 Computer Science 1MD3 Introduction to Programming Michael Liut Ming Quan Fu Brandon.
Object-Oriented Programming with Java Lecture 1: Introduction Autumn, 2007.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (1/2)
Basic Concepts of Object Orientation Object-Oriented Analysis CIM2566 Bavy LI.
Methodology First and Language Second -A Way to Teach Object-Oriented Programming Haibin Zhu, PhD Department of Computer Science and Mathematics Nipissing.
1 CSE Programming in C++. 2 Overview Sign roster list Syllabus and Course Policies Introduction to C++ About Lab 1 Fill Questionnaire.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
Next Back MAP MAP F-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All.
Object Oriented Programming. OOP  The fundamental idea behind object-oriented programming is:  The real world consists of objects. Computer programs.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
Object-Oriented Paradigm (OOP) Course Code: SE 101 Lecture No. 1.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (1/2)
Object-Oriented Programming (OOP) Lecture No. 1. Course Objective ► Objective of this course is to make students familiar with the concepts of object-oriented.
1 Design Object Oriented Solutions Object Oriented Analysis & Design Lecturer: Mr. Mohammed Elhajj
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
 The Object Oriented concepts was evolved for solving complex problems. Object- oriented software development started in the 1980s. Object-oriented design.
CSE202 Object Oriented Programing
Object Oriented Programming
Classes (Part 1) Lecture 3
JAVA By Waqas.
OOP What is problem? Solution? OOP
Prachet Bhuyan Assistant Professor, CSE,SOT, KIIT University
Concepts and Basics of C++ Programming
OBJECT ORIENTED PROGRAMMING overview
PRINCIPALES OF OBJECT ORIENTED PROGRAMMING
Object-oriented programming
Objects First with Java A Practical Introduction using BlueJ
Concepts and Basics of C++ Programming
Object-oriented Design in Processing
Basic Object Oriented Approach
Object-oriented Design in Processing
CIS601: Object-Oriented Programming in C++
Objects First with Java A Practical Introduction using BlueJ
CSE Object Oriented Programing
Object Oriented Programming
Objects First with Java A Practical Introduction using BlueJ
Object-oriented Design in Processing
Object-Oriented Programming
Object-oriented Design in Processing
Presentation transcript:

Introduction to Object Orientation Dr. Ahmed Youssef

Object-Orientation It is a kind of thinking methodology  Everything in the world is an object;  Any system is composed of objects;  The evolution and development of a system is caused by the interactions among the objects inside or outside the system 2 SWE 316- Ahmed Youssef

Decomposition of the large problem into small parts that can be solved separately. Why Object Oriented? Large Application 3 SWE 316- Ahmed Youssef

Object-Oriented Concept Object & Class Inheritance Polymorphism Encapsulation 4 SWE 316- Ahmed Youssef

Everything in the world is an object A flower, a tree, an animal A student, a professor A desk, a chair, a classroom, a building A university, a city, a country The world, the universe A subject such as CS, SWE, Math, History, … 5 SWE 316- Ahmed Youssef

Object 6 SWE 316- Ahmed Youssef

Any system is composed of objects A cultural system An educational system An economic system An Information system A computer system 7 SWE 316- Ahmed Youssef

Procedure Program view Main Program Data Procedur e 1 Procedur e 2 Procedur e 3 8 SWE 316- Ahmed Youssef

Main Program(Also a module) Data Data 1 Module 2 + DataData 2 Module 1 + DataData 1 Procedure 1 Procedure 2 The main program coordinates calls to procedures in separate modules and hands over appropriate data as parameters. Procedure 3 9 SWE 316- Ahmed Youssef

Object 1 Data 1 +Procedures 1 DataData 1 Object 3 Data 3 + Procedures 3 Object 2 Data 2 + Procedures 2 Object 4 Data 4 + Procedures 4 10 SWE 316- Ahmed Youssef

11 Classes objects sharing common characteristics contain  state: attributes, fields, variables, data member  behavior: functions, methods SWE 316- Ahmed Youssef

Class Person  Ahmed  Majed  Salem  Saad 12 SWE 316- Ahmed Youssef

Class Student  Ahmed  Majed  Salem  Saad 13 SWE 316- Ahmed Youssef

Class Tennis Player Bandar Mosaed Nayef Khaled 14 SWE 316- Ahmed Youssef

Class Institute Social Technology Engineering Science Agricultural Technology 15 SWE 316- Ahmed Youssef

Class Name Attributes Operations … 16 SWE 316- Ahmed Youssef

Class Student StudentID FirstName LastName Address etc… RegisterForCourse DropCourse etc SWE 316- Ahmed Youssef

Class Tennis Player FirstName LastName Nationality Ranking etc… RegisterForTournament etc SWE 316- Ahmed Youssef

Class Car Car Reg. Number Maker Model Color etc… Accelerate Stop etc SWE 316- Ahmed Youssef

Class Airplane Plane Number Manufacturer Model etc… TakeOff Landing etc SWE 316- Ahmed Youssef

21 Object & Class SWE 316- Ahmed Youssef

Object & Class Student StudentID FirstName LastName Address etc… RegisterForCourse DropCourse etc... Student  Ahmed  Majed  Salem  Saad 22 SWE 316- Ahmed Youssef

Object & Class Student1 B Ahmed Alfgdfg 7146 sdasds7 etc… RegisterForCourse DropCourse etc... Student  Ahmed  Majed  Salem  Saad 23 SWE 316- Ahmed Youssef

Student1 B Ahmed Alfgdfg 7146 sdasds7 etc… RegisterForCourse DropCourse etc... Student StudentID FirstName LastName Address etc… RegisterForCourse DropCourse etc SWE 316- Ahmed Youssef

Building Class SWE 316- Ahmed Youssef 25 Any Thing Attribute s Behavior

Student- Class 26

Main Class Student Class 3. Manage object 1. Create objects from class Obj 1 Obj 2 Obj 3 Obj 4 2. objects 27

Student Class Instance variableConstructor 28

Method Overloaded Method Student Class 29