The Ontology of Objects in Inheritance Copyright © 2006 Patrick McDermott UC Berkeley Extension

Slides:



Advertisements
Similar presentations
ER Tutorial 2 Chapter 9 - Questions 3, 4 and 5 V3.0 Napier University Dr Gordon Russell.
Advertisements

Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Inheritance Java permits you to use your user defined classes to create programs using inheritance.
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Inheritance. Extending Classes It’s possible to create a class by using another as a starting point  i.e. Start with the original class then add methods,
Chapter 4 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Use of supertype/subtype relationships Use of supertype/subtype.
12 CHAPTER DATABASES Databases are the key to accessing information throughout our lives. Used in hospitals, grocery stores, schools, department stores,
The Enhanced E-R (EER) Model
PowerPoint 102 The eatwell plate © Food - a fact of life 2007.
Chapter 5: Modeling Systems Requirements: Events and Things
Modeling Systems Requirements: Events and Things.
CRC Cards C lass  R esponsibility  C ollaborator Copyright © 1999 Patrick McDermott UC Berkeley Extension Although not strictly part.
Data Modeling 101 UC Berkeley Extension Copyright © 2000 Patrick McDermott
Systems Analysis and Design in a Changing World, Fifth Edition
Object Oriented Programming Lecturer: Andreas P. Adi
CONCEPTS OF OBJECT ORIENTED PROGRAMMING. Topics To Be Discussed………………………. Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism.
The Topic: NUTRITION! Fantastic Fruit Delicious Dairy Delicious Dairy Versatile Veggies Versatile.
Level 2 Award in Employability Skills
Big Java Chapter 12. Software Process - Waterfall Analysis Design Implementation Testing Deployment Does not work well when rigidly applied! established.
Intro to UML - OO Class Diagrams Week 5 CMIS570. Plan for Tonight Object terms Unified Modeling Language history Class Diagrams Intro to Oracle Oracle.
Nutrients. Carbohydrates Function: Provide ENERGY for the body Structure: Carbohydrates are sugars and starches Found in : rice, beans, potatoes, fruits,
Data Types Copyright © 2006 Patrick McDermott College of Alameda
ECE 8443 – Pattern Recognition ECE 3822 – Software Tools For Engineers Topics: Definitions and Terminology Abstraction Schema Tables Types of Databases.
Nutrients. Carbohydrates Function: Provide ENERGY for the body Structure: Carbohydrates are sugars and starches Found in : rice, beans, potatoes, fruits,
Association Class Generalization/Specialization Whole-Part Page More Associations 1.
4.07 Periodic Table Lab Activity
Is my diet healthy? By Vasilia Spaidioti A3. What do I eat on a typical day? Breakfast: milk with corn flakes, bread with jam, a piece of brioche. Lunch:
The Relational Model UC Berkeley Extension Copyright © 2008 Patrick McDermott.
Which ERAT? Entity Relationship Attribute Trigger Copyright © 1999 Patrick McDermott.
Microsoft Access Intro Class 6 Relationships.
Database Systems: Enhanced Entity-Relationship Modeling Dr. Taysir Hassan Abdel Hamid.
5 Systems Analysis and Design in a Changing World, Fifth Edition.
CRAM/ERAT Babel College of Alameda Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger.
Banking Example College of Alameda Copyright © 1998 Patrick McDermott.
Subtypes Copyright © 1999 Patrick McDermott UC Berkeley Extension
Database Systems Supertypes and Subtypes Lecture # 10.
Relationships Copyright © 1999 Patrick McDermott UC Berkeley Extension Mary Cassatt (1844–1926) Mother and Child against a Green Background.
UOI – Around The Table  3º Infants. Food triangle:
Supertypes and Subtypes
Food. There are 5 food groups 1. Bread, cereals and pasta.
Training Course Domain Modeling. 2 What is the Domain model? An abstract data model A reflection of reality No ERD, closer to entity-oriented models Consists.
Chapter 4 Basic Object-Oriented Concepts. Chapter 4 Objectives Class vs. Object Attributes of a class Object relationships Class Methods (Operations)
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
What makes a good meal?.
Advance Database Engineering 1 Chapter 4: The Enhanced ER Model and Business Rules Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 3: THE ENHANCED.
Can you identify whether the following foods are carbohydrates, fats or proteins? Picture Board Quiz ‘ Carbs, Fats or Proteins?’
 What is your favorite meal? ◦ Write down specific foods & beverages  Why is it your favorite meal?
Chapter 4_part2: The Enhanced Entity-Relationship (EER) Model.
CHAPTER 6 OBJECT ANALYSIS.
Dr Gordon Russell, Napier University Tutorial - ER2 - V2.0 1 ER Tutorial 2 Questions 3, 4 and 5.
5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.
Database Design Chapters 17 and 18.
FOOD GROUPS.
Chapter 4: The Enhanced ER Model and Business Rules
Nutrients.
A strategic health initiative from Project HOPE UK
Inheritance Basics Fall 2008
Road Map Inheritance Class hierarchy Overriding methods Constructors
Sets Extended Maths © Adam Gibson.
Entity-Relationship Model and Diagrams (continued)
LECTURE 34: Database Introduction
Technical Module A Data Modeling Definitions
Databases and Structured Files: What is a database?
Database Design Chapters 17 and 18.
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
ITEC 3220A Using and Designing Database Systems
The eatwell plate.
LECTURE 33: Database Introduction
Inheritance Lakshmish Ramaswamy.
Presentation transcript:

The Ontology of Objects in Inheritance Copyright © 2006 Patrick McDermott UC Berkeley Extension

Category  CRC Cards : Class  ERD : Entity Type  Relational : Relation  Database : Table  Programmer : Layout, struct  UML : Class  Etc., etc., etc. …: Type, Structure

Thing  CRC Cards : N/A  ERD : Entity  Relational : Tuple  Database : Row  Programmer : Record  UML : Object  Etc., etc., etc. …: Occurrence, Instance

Set Theory Russell’s Paradox –Where does the set of all sets that do not contain themselves belong? If IN the set, it contains itself so OUT. If OUT of the set, it doesn’t so IN.  Bertrand was depressed for 6 months! –Me: like contradictions about Mermaids –I do not think the Universe is arranged as Sets “This method is to define as the number of a class the class of all classes similar to the given class.”—Bertrand Russell

How We Think How many Definitions go: ____ is a kind of _____ and circle on up…. Windows Buttons –CCmndTarget ??? –Button, Radio, Checkbox C++ MFC: All have check attribute C#: Each is Different with appropriate attributes

Driver License at DMV Driver[’s] License –Car, Motorcycle, Truck –School Bus: it’s not a type of vehicle, it’s how the vehicle is used –Chauffeur’s License Often the rules are not made based on a classification; in fact, it’s hard to tease out the reasons: “legislative intent” Why Chocolate, Strawberry and Vanilla?

Biological Taxonomy It is undeniably Useful, BUT If inheritance is so natural, why was the work of Linnaeus a breakthrough? Nature Doesn’t Care –Why shouldn’t a Mammal lay an egg? –Marine Mammals are Kool! Period Table Lucky Ignorance –Would have been harder if Dmitri Mendeleev knew more

Things That Fly The O/O FLYERS Airplanes Birds Fish Airplanes Fly() Birds Fly() Fish Flying Fish: Fly() It’s hard to list all things that Fly It’s easy to say whether something Flies Time? Time Flies

Deitels’ School CommunityMember EmployeeAlumnus Deitels, Simply C++, p FacultyStaff Student TeacherAdministrator Administrators are like Staff, and like Faculty Students and Alumni can be Employees Aren’t Townies Community Members?

Deitel’s After Deitels, Simply C++, p Shape TwoDimensionalShapeThreeDimensionalShape CircleSquareTriangleSphereCubePyramid  sin  + cos  RectangleEllipse Should we exchange levels?

Multiple Inheritance  Can be A MESS Is possible in C++, But not C# (or Java) –Like pointers, removed & called “Improved” Is not Advisable to overuse But alas, the world does work that way –We each belong to many sub-classifications

Foods Booch OOD, p. 111 Food Dairy Product Bread Meat Fruits & Veggies BeefMilk Pasta Bran Flakes Banana High Protein High Carb

Which Way Plane & Solid, or Circle, Square Some Foods are Carbohydrates –Some CHO are Foods Same Males are Students –Some Students are Males Which Law is More Specific? –In Hazardous Material, Food –In Food, Poisons?

Payment? Customer Invoice Item Payment * * ? ? ? $$$ Credit Card Rail Cars