Stephenson College DP 96 1 Object-Orientation by Derek Peacock.

Slides:



Advertisements
Similar presentations
Understand and appreciate Object Oriented Programming (OOP) Objects are self-contained modules or subroutines that contain data as well as the functions.
Advertisements

When is Orientated Programming NOT? Mike Fitzpatrick.
4. Object-Oriented Programming Procedural programming Structs and objects Object-oriented programming Concepts and terminology Related keywords.
1 OBJECT-ORIENTED CONCEPTS. 2 What is an object?  An object is a software entity that mirrors the real world in some way.  A software object in OOP.
Classes & Objects Computer Science I Last updated 9/30/10.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 5 Architecture-Driven Component Development.
Object-Oriented Analysis and Design
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
UML – Class Diagrams.
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
Object Oriented System Development with VB .NET
Object-oriented Programming Concepts
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
BACS 287 Basics of Object-Oriented Programming 1.
Introduction To System Analysis and design
Copyright © 2002, Systems and Computer Engineering, Carleton University Intro.ppt * Object-Oriented Software Development Unit 1 Course.
UFCEUS-20-2 : Web Programming Lecture 5 : Object Oriented PHP (1)
Object Oriented Programming Development
Introduction to Object-oriented programming and software development Lecture 1.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
Design Patterns OOD. Course topics Design Principles UML –Class Diagrams –Sequence Diagrams Design Patterns C#,.NET (all the course examples) Design Principles.
OBJECT-ORIENTEDNESS KCDCC. WHAT IS OBJECT-ORIENTEDNESS? KCDCC model system as a collection of interacting objects O-O Modelling O-O Programming similar.
1 A Student Guide to Object- Orientated Systems Chapter 4 Objects and Classes: the basic concepts.
OBJECT AND CLASES: THE BASIC CONCEPTS Pertemuan 8 Matakuliah: Konsep object-oriented Tahun: 2009.
An Object-Oriented Approach to Programming Logic and Design
An Introduction to Design Patterns. Introduction Promote reuse. Use the experiences of software developers. A shared library/lingo used by developers.
Unified Modeling Language, Version 2.0
3rd Country Training, K.Subieta: System Engineering and Databases. Lecture 3, Slide 1 February 20, 2004 Lecture 3: Introduction to Software Analysis and.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Object-Oriented Programming (OOP) CSC-2071 (3+1=4 Credits) Lecture No. 1 MBY.
Basic OOP Concepts and Terms. In this class, we will cover: Objects and examples of different object types Classes and how they relate to objects Object.
Software Engineering Principles. SE Principles Principles are statements describing desirable properties of the product and process.
Learners Support Publications Object Oriented Programming.
Abstraction ADTs, Information Hiding and Encapsulation.
Programming Paradigms Lecturer Hamza Azeem. What is PP ? Revision of Programming concepts learned in CPLB Learning how to perform “Object-Oriented Programming”
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (1/2)
9-Dec Dec-15  INTRODUCTION.  FEATURES OF OOP.  ORGANIZATION OF DATA & FUNCTION IN OOP.  OOP’S DESIGN.
Basic Concepts of Object Orientation Object-Oriented Analysis CIM2566 Bavy LI.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
1 Unified Modeling Language, Version 2.0 Chapter 2.
OOP Review CS 124.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science)
OO in Context Lecture 13: Dolores Zage. Confused about OO Not alone, there is much confusion about OO many programs are claimed to be OO but are not really.
Banaras Hindu University. A Course on Software Reuse by Design Patterns and Frameworks.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
Inheritance and Aggregation Lecture References Inheritance from Lecture Notes on Object Oriented Programming with C++. Available at
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
COP 4331 – OOD&P Lecture 7 Object Concepts. What is an Object Programming language definition: An instance of a class Design perspective is different.
Introduction to Object Oriented Programming Lecture-3.
Basic Characteristics of Object-Oriented Systems
Software Construction Lab 05 Abstraction, Inheritance, and Polymorphism in Java.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
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.
Object Oriented Programming Development
Programming paradigms
CSC 222: Computer Programming II
Object Oriented Programming
CHAPTER 5 GENERAL OOP CONCEPTS.
Object-Oriented Techniques
Systems Analysis and Design With UML 2
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Basic Object Oriented Approach
Software Design Lecture : 12.
BCA-II Object Oriented Programming using C++
Basic OOP Concepts and Terms
Object Oriented Analysis and Design
Object-Oriented PHP (1)
Object Oriented Design & Analysis
Presentation transcript:

Stephenson College DP 96 1 Object-Orientation by Derek Peacock

Stephenson College DP 96 2 Types of Objects a Tangible things ` Cars, Cards, Books a Roles ` Employer, Teacher, Student a Incidents ` Flight, Transactions

Stephenson College DP 96 3 Types of Objects cont... a Interactions ` Electrical circuit, a contract a Specifications ` Architectural Design ` Engineering blueprint

Stephenson College DP 96 4 Objects in Programming a Direct representation of the application ` Graphical Playing Cards ` Documents ` Accounts a Artefact of Implementation ` Card Deck Unit ` stacks, queues

Stephenson College DP 96 5 What are Objects? a Attributes, States a Methods, Behaviour a Composed of other objects

Stephenson College DP 96 6 Program Objects Object = (private) Data + (public) Processes Object Name Public Processes Private Data

Stephenson College DP 96 7 Encapsulation a Data & Processes linked a Public interface a Information is hidden a private data a private internal processes Bank Account Account number account holder current balance get current balance make deposit make withdrawal

Stephenson College DP 96 8 Traditional Modularity Process Driven a Functional Decomposition a Data structured to suite the process a code re-use difficult Data Driven a Data Decomposition a Process constrained by the structure of data a code re-use difficult

Stephenson College DP 96 9 Object Oriented Modularity a Data & Process tightly bound together (encapsulated) a Internal data and processes hidden a Public interface can remain fixed while internal workings are changed a Can be extended without altering original code

Stephenson College DP ‘Good’ Modules a Reusability a Extensibility a Decomposability a Composability a Understandability a Continuity a Protection Software components New components from old breaking a system down building a system up easy to understand the part small changes lead to small effects errors confined to module

Stephenson College DP Features of OOP a Encapsulation/Abstraction a Inheritance a Polymorphism a Aggregation

Stephenson College DP Encapsulation/Abstraction a Abstraction is used to represent essential features of behaviours and states abstract data typeclass a Behaviours & States encapsulated into an abstract data type or class a Internal States not directly accessible a Changes to internal implementation do not effect external interface

Stephenson College DP Inheritance a One Class can inherit the characteristics of another class. ` One class can be a “Kind of” other class a kind of ` a text window is a kind of window a A classification hierarchy shows the inheritance relationships between classes

Stephenson College DP Polymorphism a Different objects can respond to the same message in different ways e.g. ` Square.Draw ` Circle.Draw a At runtime we might not know what object is present but for example Object.Draw will draw whatever object is available

Stephenson College DP Aggregation a Objects can be aggregated into new relationships a Objects of one class can be composed of objects of another class is a part of ` Object A is a part of Object B is a part of ` Engine is a part of Car

Stephenson College DP Comparing Approaches Procedural a Data Type a Variable a Function/Procedure Object-Oriented a Abstract Data Type or Class a Object/Instance a Method/Operation