The Object Paradigm Classes – Templates for creating objects

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

OOP Abstraction Classes Class Members: Properties & Methods Instance (object) Encapsulation Interfaces Inheritance Composition Polymorphism Using Inheritance.
4. Object-Oriented Programming Procedural programming Structs and objects Object-oriented programming Concepts and terminology Related keywords.
Stereotypes Stereotypes provide the capability to create a new kind of modeling element. –They can be used to classify or mark modeling elements. –A type.
OBJECT ORIENTED PROGRAMMING M Taimoor Khan
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
1 Composition A whole-part relationship (e.g. Dog-Tail) Whole and part objects have same lifetime –Whole creates instance of part in its constructor In.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Object-Oriented PHP (1)
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
16/22/2015 2:54 PM6/22/2015 2:54 PM6/22/2015 2:54 PMObject-Oriented Development Concept originated with simulating objects and their interactions. Adapted.
C++ Training Datascope Lawrence D’Antonio Lecture 3 An Overview of C++
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
 By Wayne Cheng.  Introduction  Five Tenets  Terminology  The foundation of C++: Classes.
UML Class Diagrams: Basic Concepts. Objects –The purpose of class modeling is to describe objects. –An object is a concept, abstraction or thing that.
BACS 287 Basics of Object-Oriented Programming 1.
Introduction to Object-oriented programming and software development Lecture 1.
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.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology Khan younis.
CS200 Algorithms and Data StructuresColorado State University Part 4. Advanced Java Topics Instructor: Sangmi Pallickara
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
Object Oriented Programming Concepts. Object Oriented Programming Type of programming whereby the programmer defines the data types of a data structure.
OBJECT-ORIENTED PROGRAMMING (OOP) WITH C++ Instructor: Dr. Hany H. Ammar Dept. of Electrical and Computer Engineering, WVU.
Data Structures Using C++ 2E1 Inheritance An “is-a” relationship –Example: “every employee is a person” Allows new class creation from existing classes.
Object-Oriented Design Justin Callanan CS 597. Object-Oriented Basics ● Data is stored and processed in “objects” ● Objects represent generalized real.
Information Systems Engineering
Fundamentals of OO. CSCI 265Dale Roberts Example: Classroom Attending the lecture we have several individuals –Wade - loves Chinese food –George - an.
CSC 131 Fall 2006 Lecture # 6 Object-Oriented Concepts.
Object-Oriented Programming. Objectives Distinguish between object-oriented and procedure-oriented design. Define the terms class and object. Distinguish.
Chapter 12 Object-oriented design for more than one class.
1 Introduction to Classes. 2 Terms and Concepts A class is... –The most important building block of any object- oriented system. –A description of a set.
OOP Review CS 124.
Chapter 4 Basic Object-Oriented Concepts. Chapter 4 Objectives Class vs. Object Attributes of a class Object relationships Class Methods (Operations)
Inspired by the Oulipu. The 3 Tenets of OO Encapsulation Polymorphism Inheritance.
Class diagrams Terézia Mézešová.
Chapter 16 UML Class Diagrams 1CS6359 Fall 2012 John Cole.
Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A.
© 2007 Lawrenceville Press Slide 1 Chapter 9 Inheritance  One class is an extension of another.  Allows a class to define a specialized type of an existing.
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.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
Ch 7: From Modules to Objects (Part Two) CSCI 4320.
COP 4331 – OOD&P Lecture 7 Object Concepts. What is an Object Programming language definition: An instance of a class Design perspective is different.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
Concepts in Object-Oriented Design CSCI 240 Dale Roberts, Lecturer Computer Science, IUPUI
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.
Object-Oriented Modeling
OBJECT ORIENTED CONCEPT
Interface, Subclass, and Abstract Class Review
Fundamentals of OO.
OOP What is problem? Solution? OOP
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Types of Programming Languages
SOFTWARE DESIGN AND ARCHITECTURE
Object Oriented Concepts
3 Fundamentals of Object-Oriented Programming
Chapter 10 Thinking in Objects
Software Engineering Lecture 10.
Object Oriented Programming
Testing with OO OO has several key concepts:
CIS601: Object-Oriented Programming in C++
Object Oriented Analysis and Design
Chapter 22 Object-Oriented Systems Analysis and Design and UML
Object-Oriented Programming
Jim Fawcett CSE687 – Object Oriented Design Spring 2014
Extending Classes Through Inheritance
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
Presentation transcript:

The Object Paradigm Classes – Templates for creating objects Includes Behaviors (methods) Includes Data (attributes) Object Paradigm

The Object Paradigm Objects – Instances of a class Defined from a class template Consumes memory Identified with a object reference Has a finite lifespan Object Paradigm

The Object Paradigm Encapsulation – How an object performs its duties is hidden from the outside world Methods can be used without the knowledge of the inner workings Inner workings can be modified without impacting use (as long as the interface is unchanged) Object Paradigm

The Object Paradigm Association – Relationship between two classes

The Object Paradigm Composition – Supports a “part-of” relationship

The Object Paradigm Aggregation – Whole/part relationship where the lifetimes of the whole and part are not necessarily bound together Composition – Whole/part relationship where the lifetimes of the whole and part are bound together Object Paradigm

The Object Paradigm Inheritance – Defines a “kind-of” relationship. Supports reusing common attributes and methods from a base class to derived classes. “Specialization” Object Paradigm

The Object Paradigm Abstract Classes Do not include implementation code sufficient to instantiate an object Used to define the common data and behavior of the derived classes Very powerful design & maintenance concept Object Paradigm

The Object Paradigm Interface – 100% abstract methods Derived classes must define behavior A class can inherit from many interfaces (pseudo multiple inheritance). Object Paradigm

The Object Paradigm Polymorphism – The ability of objects with the same inheritance to perform any given behavior differently Object Paradigm