ADVANCED OBJECT-ORIENTED PROGRAMMING

Slides:



Advertisements
Similar presentations
Object-Oriented Analysis and Design: Object Modeling – Class Diagrams
Advertisements

Inheritance Java permits you to use your user defined classes to create programs using inheritance.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 The.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Slide 1 Systems Analysis & Design CS183 Spring Semester 2008 Dr. Jonathan Y. Clark Course Website:
Chapter 14 (Web): Object-Oriented Data Modeling
UML Class Diagram: class Rectangle
Modelling classes Drawing a Class Diagram. Class diagram First pick the classes –Choose relevant nouns, which have attributes and operations. Find the.
8.1 Classes & Inheritance Inheritance Objects are created to model ‘things’ Sometimes, ‘things’ may be different, but still have many attributes.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
© 2006 Pearson Addison-Wesley. All rights reserved9 A-1 Chapter 9 Advanced Java Topics CS102 Sections 51 and 52 Marc Smith and Jim Ten Eyck Spring 2007.
Chapter 14: Object-Oriented Data Modeling
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 12 Object-Oriented Design.
Object Orientation An Object oriented approach views systems and programs as a collection of interacting objects. An object is a thing in a computer system.
An Object-Oriented Approach to Programming Logic and Design
OBJECT ORIENTED PROGRAMMING CONCEPTS ISC 560. Object-oriented Concepts  Objects – things names with nouns  Classes – classifications (groups) of similar.
The Software Development Life Cycle: An Overview Presented by Maxwell Drew and Dan Kaiser Southwest State University Computer Science Program.
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Specialization and Inheritance Chapter 8. 8 Specialization Specialized classes inherit the properties and methods of the parent or base class. A dog is.
Programming Pillars Introduction to Object- Oriented Programming.
Object Orientation Yaodong Bi, Ph.D. Department of Computer Sciences University of Scranton October 18, 2015October 18, 2015October 18, 2015.
Inheritance Building one object from another. Background Object-oriented programming is normally described has offering three capabilities Encapsulation:
CHAPTER 13 (ONLINE): OBJECT-ORIENTED DATA MODELING © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
1 © Prentice Hall, 2002 Chapter 14: Object-Oriented Data Modeling Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
7-1 © Prentice Hall, 2007 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
Domain Modeling Part2: Domain Class Diagram Chapter 4 pp part 2 1.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
CIS 112 Exam Review. Exam Content 100 questions valued at 1 point each 100 questions valued at 1 point each 100 points total 100 points total 10 each.
Object Oriented Software Development
Object-Oriented Data Modeling
Chapter 12 Object-oriented design for more than one class.
Class diagrams Terézia Mézešová.
© 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.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
ITEC0724 Modern Related Technology on Mobile Devices Lecture Notes #2 1.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi © 2013 Pearson.
Class Diagrams Revisited. Parameterized Classes Parameterized Classes - are used to represent relationships between templates.
Chapter 11 Inheritance © 2008 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. Marilyn Bohl/Maria Rynn Tools for Structured and Object-Oriented.
1 Inheritance One of the goals of object oriented programming is code reuse. Inheritance is one mechanism for accomplishing code reuse. It allows us to.
Java Programming: Guided Learning with Early Objects Chapter 9 Inheritance and Polymorphism.
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 Modeling
Business System Development
DATA REQIREMENT ANALYSIS
The Movement To Objects
Interface, Subclass, and Abstract Class Review
Chapter 11 Object-Oriented Design
Lecture 4 – Case Study TCP1201: 2017/2018.
Other Class and Object Relationships
Object Oriented Concepts
UML Class Diagram: class Rectangle
Inheritance B.Ramamurthy 11/7/2018 B.Ramamurthy.
3 Fundamentals of Object-Oriented Programming
Domain Class Diagram Chapter 4 Part 2 pp
Advanced Java Topics Chapter 9
Reusability 11/29/2018© 2006 ITT Educational Services Inc.
Chapter 20 Object-Oriented Analysis and Design
OBJECT-ORIENTED PROGRAMMING
Appendix A Object-Oriented Analysis and Design
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
Object Oriented Analysis and Design
SE-1021 Software Engineering II
Chapter 11 Class Inheritance
The Object Paradigm Classes – Templates for creating objects
Extending Classes Through Inheritance
Unit 3 OSPF Single Area Chapter 7 Configuring OSPF in a Single Area
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:

ADVANCED OBJECT-ORIENTED PROGRAMMING 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 1

Objectives Describe the benefits of object-oriented programming. Describe how inheritance promotes reuse. Describe how an object-oriented approach supports the use of frameworks. Identify appropriate uses for inheritance and polymorphism. Design classes that implement inheritance. Design abstract classes. Identify the relationships between classes. Use UML to describe relationships between classes. 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 2

A Generalization/Specialization Relationship 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 3

Class Diagram- Employee Example 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 4

Employee Class Pseudocode 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 5

Faculty Subclass Pseudocode 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 6

Staff Subclass Pseudocode 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 7

Overriding and Base Methods Employee ZapEmployee Faculty Staff ZapEmployee Faculty: Faculty1 Faculty1.ZapEmployee //actually calls Employee.ZapEmployee 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 8

Class Diagram- Account Example 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 9

Association - Works for 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 10

Examples of Multiplicity 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 11

Association - Holds 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 12

Aggregation – Example 1 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 13

Aggregation – Example 2 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 14

A Frame for Measurement Conversion 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 15

Composition – Example 1 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 16

Composition – Example 2 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 17

Event Planning Problem 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 18

Inner Classes Monthly Inventory private x Exceptions Write x 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 19

Summary In this unit, students learned: Benefits of inheritance Using inheritance Protected properties Overriding methods Polymorphism Abstract classes Binary association Self-association Multiplicity Aggregation relationships Composition relationships Inner classes 8/6/2019© 2006 ITT Educational Services Inc. Structured Programming: Unit 6 Slide 20