OBJECT ORIENTED CONCEPT

Slides:



Advertisements
Similar presentations
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Advertisements

Chapter 14 (Web): Object-Oriented Data Modeling
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
7M822 UML Class Diagrams advanced concepts 15 September 2008.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
PRJ566: PROJECT PLANNING AND MANAGEMENT Class Diagrams.
Chapter 14: Object-Oriented Data Modeling
UML Class Diagrams: Basic Concepts. Objects –The purpose of class modeling is to describe objects. –An object is a concept, abstraction or thing that.
The Unified Modeling Language (UML) Class Diagrams.
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.
Session 11 The Class Diagram: Aggregation and Generalization Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 12, 2011 Presented.
1 Chapter 2 (Cont.) The BA’s Perspective on Object Orientation.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
1 © Prentice Hall, 2002 Chapter 14: Object-Oriented Data Modeling Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
© 2011 Pearson Education 1 Chapter 13 (Online): Object-Oriented Databases Modern Database Management 10 th Edition, International Edition Jeffrey A. Hoffer,
7-1 © Prentice Hall, 2004 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
What is a Structural Model?
Object-Oriented Data Modeling
CSCI-383 Object-Oriented Programming & Design Lecture 10.
Database Design – Lecture 12 Object Oriented Database Design cont’d.
Chapter 12 Object-oriented design for more than one class.
Chapter 16 UML Class Diagrams 1CS6359 Fall 2012 John Cole.
 Class diagrams show the classes of the system, their interrelationships (including inheritance, aggregation, and association), and the operations and.
Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
Object Modeling THETOPPERSWAY.COM. Object Modelling Technique(OMT)  Building a model of an application domain and then adding implementation.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
Class Diagram Lecture # 1. Class diagram A Class Diagram is a diagram describing the structure of a system shows the system's classes Attributes operations.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Enhanced Entity-Relationship (EER) Model
OOP - Object Oriented Programming
Object-Orientated Analysis, Design and Programming
Object Oriented Programming
UML Diagrams: Class Diagrams The Static Analysis Model
Object-Oriented Modeling
Enhanced Entity-Relationship and Object Modeling Objectives
Conceptual Design & ERD Modelling
Business System Development
JAVA By Waqas.
Object-Oriented Analysis and Design
ניתוח ועיצוב מערכות תוכנה אביב 2014
EKT472: Object Oriented Programming
Class diagram Description
Chapter 7: Entity-Relationship Model
Object Oriented Concepts
Advanced Java Programming
UML Class Diagrams: Basic Concepts
Object Oriented Analysis and Design
Engineering Quality Software
Lec 3: Object-Oriented Data Modeling
Software Engineering Lecture #11.
The Object-Oriented Thought Process Chapter 07
UML Class Diagram.
Software Engineering Lecture 10.
Chapter 20 Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Software Construction Lecture 2
Understand and Use Object Oriented Methods
Chapter 2 Underpinnings of Requirements Analysis
ITEC 3220A Using and Designing Database Systems
Object Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
The Object Paradigm Classes – Templates for creating objects
Chapter 6b: Database Design Using the E-R Model
Chapter 11: Class Diagram
Presentation transcript:

OBJECT ORIENTED CONCEPT Chapter 3

Relationships Between Classes When more than one class is used in a program, there can be three main types of relationships between objects from two or more of the classes. The simplest relationship is between two classes that are independent of each other but one class might use the services the other provides (Association) A class may be made up of other classes, or contain other classes that are part of itself (Aggregation / Composition) A class may inherit all the attributes and methods of a parent class, but is given a unique name as well as its own additional attributes and methods (Inheritance – generalization / specialization)

Association An association between two classes is required when the classes need to interact or communicate for the program to achieve its purpose Just as instances of classes are called objects, instances of associations are called links. In a class diagram, a small arrow indicates the direction to read the description of the association, although association allows communication in both directions. PERSON COMPANY WorksFor 

Multiplicity A flight attendant is serving many on board passengers Indicates the number of objects that are associated with one particular class. Either one-to-one or one-to-many. For instance: A flight attendant is serving many on board passengers

Aggregation and Composition A special type of relationship when a class consists of a number of component classes. These are whole-part associations: one class is the whole that is made up of the parts For example: Airport is a whole made up of parts including terminal, car park, air traffic control tower, etc

Aggregation and Composition In an aggregation, it is not necessarily the case that each component belongs to one whole. For example, in a home entertainment system, a remote control may be a component of a television, and the same remote control could be a component of the videocassette recorder. Composition is a strict form of aggregation in which the part’s existence is dependent on the entirety. If the entirety is deleted, so are the instances. For example, consider that in a game of electronic chess the playing area is made up of classes ‘square’ and ‘board’. Each square is part of exactly one board. It would not be sensible to copy or delete the ‘board’ object without copying or deleting the ‘square’ objects.

Inheritance One of the most powerful attributes of OOP is it allows the developer to define relationship between classes that facilitate not only code reuse, but also organizing classes and factoring in commonalities of various classes. Inheritance allows a class to inherit the attributes and methods of another class which allows the creation of brand new classes by abstracting out common attributes and behaviors

Inheritance Sometimes, one class shares features with another class, but has enough differences to deserve its own identity The first class then becomes a kind of or type of the second class The top-level class, also called the parent class or superclass, has shared attributes and operations, and the child classes or subclasses, inherit these, adding their own attribute and operations to make them distinct